Last active
December 22, 2017 05:34
-
-
Save joejulian/8ac4cfc456ab1c9a7eff80090324334d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
annotations: | |
labels: | |
k8s-app: canal | |
name: canal | |
namespace: kube-networking | |
spec: | |
selector: | |
matchLabels: | |
k8s-app: canal | |
template: | |
metadata: | |
annotations: | |
scheduler.alpha.kubernetes.io/critical-pod: "" | |
labels: | |
k8s-app: canal | |
spec: | |
containers: | |
- env: | |
- name: DATASTORE_TYPE | |
value: kubernetes | |
- name: FELIX_LOGSEVERITYSYS | |
value: info | |
- name: FELIX_IPTABLESREFRESHINTERVAL | |
value: "60" | |
- name: FELIX_IPV6SUPPORT | |
value: "false" | |
- name: CALICO_NETWORKING_BACKEND | |
value: none | |
- name: CALICO_DISABLE_FILE_LOGGING | |
value: "true" | |
- name: WAIT_FOR_DATASTORE | |
value: "true" | |
- name: IP | |
- name: HOSTNAME | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: spec.nodeName | |
- name: FELIX_DEFAULTENDPOINTTOHOSTACTION | |
value: ACCEPT | |
image: quay.io/calico/node:v2.6.3 | |
imagePullPolicy: IfNotPresent | |
name: calico-node | |
resources: | |
requests: | |
cpu: 250m | |
securityContext: | |
privileged: true | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
volumeMounts: | |
- mountPath: /lib/modules | |
name: lib-modules | |
readOnly: true | |
- mountPath: /var/run/calico | |
name: var-run-calico | |
- command: | |
- /install-cni.sh | |
env: | |
- name: CNI_NETWORK_CONFIG | |
valueFrom: | |
configMapKeyRef: | |
key: cni_network_config | |
name: canal-config | |
- name: KUBERNETES_NODE_NAME | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: spec.nodeName | |
image: quay.io/calico/cni:v1.11.1 | |
imagePullPolicy: IfNotPresent | |
name: install-cni | |
resources: {} | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
volumeMounts: | |
- mountPath: /host/opt/cni/bin | |
name: cni-bin-dir | |
- mountPath: /host/etc/cni/net.d | |
name: cni-net-dir | |
- command: | |
- /opt/bin/flanneld | |
- --ip-masq | |
- --kube-subnet-mgr | |
env: | |
- name: POD_NAME | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.name | |
- name: POD_NAMESPACE | |
valueFrom: | |
fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.namespace | |
- name: FLANNELD_IFACE | |
valueFrom: | |
configMapKeyRef: | |
key: canal_iface | |
name: canal-config | |
- name: FLANNELD_IP_MASQ | |
valueFrom: | |
configMapKeyRef: | |
key: masquerade | |
name: canal-config | |
image: quay.io/coreos/flannel:v0.9.1 | |
imagePullPolicy: IfNotPresent | |
name: kube-flannel | |
resources: {} | |
securityContext: | |
privileged: true | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
volumeMounts: | |
- mountPath: /run | |
name: run | |
- mountPath: /etc/kube-flannel/ | |
name: flannel-cfg | |
dnsPolicy: ClusterFirst | |
hostNetwork: true | |
restartPolicy: Always | |
schedulerName: default-scheduler | |
securityContext: {} | |
serviceAccount: canal | |
serviceAccountName: canal | |
terminationGracePeriodSeconds: 30 | |
tolerations: | |
- effect: NoSchedule | |
key: node-role.kubernetes.io/master | |
- key: CriticalAddonsOnly | |
operator: Exists | |
- effect: NoSchedule | |
key: node-role.kubernetes.io/master | |
operator: Equal | |
- operator: Exists | |
volumes: | |
- hostPath: | |
path: /lib/modules | |
name: lib-modules | |
- hostPath: | |
path: /var/run/calico | |
name: var-run-calico | |
- hostPath: | |
path: /opt/cni/bin | |
name: cni-bin-dir | |
- hostPath: | |
path: /etc/cni/net.d | |
name: cni-net-dir | |
- hostPath: | |
path: /run | |
name: run | |
- configMap: | |
defaultMode: 420 | |
name: canal-config | |
name: flannel-cfg | |
updateStrategy: | |
rollingUpdate: | |
maxUnavailable: 1 | |
type: RollingUpdate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment