-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Documentation update, add Calico
- Loading branch information
Showing
15 changed files
with
548 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Calico Version v3.2.3 | ||
# https://docs.projectcalico.org/v3.2/releases#v3.2.3 | ||
# This manifest includes the following component versions: | ||
# calico/ctl:v3.2.3 | ||
|
||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: calicoctl | ||
namespace: kube-system | ||
spec: | ||
hostNetwork: true | ||
containers: | ||
- name: calicoctl | ||
image: quay.io/calico/ctl:v3.2.3 | ||
command: ["/bin/sh", "-c", "while true; do sleep 3600; done"] | ||
env: | ||
- name: ETCD_ENDPOINTS | ||
valueFrom: | ||
configMapKeyRef: | ||
name: calico-config | ||
key: etcd_endpoints | ||
If you're using TLS enabled etcd uncomment the following. | ||
Location of the CA certificate for etcd. | ||
- name: ETCD_CA_CERT_FILE | ||
valueFrom: | ||
configMapKeyRef: | ||
name: calico-config | ||
key: etcd_ca | ||
Location of the client key for etcd. | ||
- name: ETCD_KEY_FILE | ||
valueFrom: | ||
configMapKeyRef: | ||
name: calico-config | ||
key: etcd_key | ||
Location of the client certificate for etcd. | ||
- name: ETCD_CERT_FILE | ||
valueFrom: | ||
configMapKeyRef: | ||
name: calico-config | ||
key: etcd_cert | ||
volumeMounts: | ||
- mountPath: /calico-secrets | ||
name: etcd-certs | ||
volumes: | ||
If you're using TLS enabled etcd uncomment the following. | ||
- name: etcd-certs | ||
secret: | ||
secretName: calico-etcd-secrets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Calico Version v3.2.3 | ||
# https://docs.projectcalico.org/v3.2/releases#v3.2.3 | ||
|
||
--- | ||
|
||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: calico-kube-controllers | ||
rules: | ||
- apiGroups: | ||
- "" | ||
- extensions | ||
resources: | ||
- pods | ||
- namespaces | ||
- networkpolicies | ||
- nodes | ||
- serviceaccounts | ||
verbs: | ||
- watch | ||
- list | ||
- apiGroups: | ||
- networking.k8s.io | ||
resources: | ||
- networkpolicies | ||
verbs: | ||
- watch | ||
- list | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: calico-kube-controllers | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: calico-kube-controllers | ||
subjects: | ||
- kind: ServiceAccount | ||
name: calico-kube-controllers | ||
namespace: kube-system | ||
|
||
--- | ||
|
||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: calico-node | ||
rules: | ||
- apiGroups: [""] | ||
resources: | ||
- pods | ||
- nodes | ||
verbs: | ||
- get | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: calico-node | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: calico-node | ||
subjects: | ||
- kind: ServiceAccount | ||
name: calico-node | ||
namespace: kube-system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: coredns | ||
namespace: kube-system | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
k8s-app: kube-dns | ||
name: coredns | ||
namespace: kube-system | ||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 2 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
k8s-app: kube-dns | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 1 | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: kube-dns | ||
spec: | ||
containers: | ||
- args: | ||
- -conf | ||
- /etc/coredns/Corefile | ||
image: docker.io/containerum/coredns:1.1.3 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
failureThreshold: 5 | ||
httpGet: | ||
path: /health | ||
port: 8080 | ||
scheme: HTTP | ||
initialDelaySeconds: 60 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 5 | ||
name: coredns | ||
ports: | ||
- containerPort: 53 | ||
name: dns | ||
protocol: UDP | ||
- containerPort: 53 | ||
name: dns-tcp | ||
protocol: TCP | ||
- containerPort: 9153 | ||
name: metrics | ||
protocol: TCP | ||
resources: | ||
limits: | ||
memory: 170Mi | ||
requests: | ||
cpu: 100m | ||
memory: 70Mi | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
add: | ||
- NET_BIND_SERVICE | ||
drop: | ||
- all | ||
readOnlyRootFilesystem: true | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
volumeMounts: | ||
- mountPath: /etc/coredns | ||
name: config-volume | ||
readOnly: true | ||
dnsPolicy: Default | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
serviceAccount: coredns | ||
serviceAccountName: coredns | ||
terminationGracePeriodSeconds: 30 | ||
tolerations: | ||
- key: CriticalAddonsOnly | ||
operator: Exists | ||
- effect: NoSchedule | ||
key: node-role.kubernetes.io/master | ||
volumes: | ||
- configMap: | ||
defaultMode: 420 | ||
items: | ||
- key: Corefile | ||
path: Corefile | ||
name: coredns | ||
name: config-volume | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: coredns | ||
namespace: kube-system | ||
data: | ||
Corefile: | | ||
.:53 { | ||
errors | ||
health | ||
kubernetes cluster.local in-addr.arpa ip6.arpa { | ||
pods insecure | ||
upstream | ||
fallthrough in-addr.arpa ip6.arpa | ||
} | ||
prometheus :9153 | ||
proxy . /etc/resolv.conf | ||
cache 30 | ||
reload | ||
} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
prometheus.io/port: "9153" | ||
prometheus.io/scrape: "true" | ||
labels: | ||
k8s-app: kube-dns | ||
kubernetes.io/cluster-service: "true" | ||
kubernetes.io/name: KubeDNS | ||
name: kube-dns | ||
namespace: kube-system | ||
spec: | ||
clusterIP: 10.96.0.10 | ||
ports: | ||
- name: dns | ||
port: 53 | ||
protocol: UDP | ||
targetPort: 53 | ||
- name: dns-tcp | ||
port: 53 | ||
protocol: TCP | ||
targetPort: 53 | ||
selector: | ||
k8s-app: kube-dns | ||
sessionAffinity: None | ||
type: ClusterIP | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: system:coredns | ||
resourceVersion: "217" | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: system:coredns | ||
subjects: | ||
- kind: ServiceAccount | ||
name: coredns | ||
namespace: kube-system | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: system:coredns | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- endpoints | ||
- services | ||
- pods | ||
- namespaces | ||
verbs: | ||
- list | ||
- watch |
Oops, something went wrong.