12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- # More info about the template: https://docs.openstack.org/kuryr-kubernetes/latest/installation/containerized.html#generating-kuryr-resource-definitions-for-kubernetes
- apiVersion: extensions/v1beta1
- kind: DaemonSet
- metadata:
- name: kuryr-cni-ds
- namespace: {{ kuryr_namespace }}
- labels:
- tier: node
- app: kuryr
- spec:
- template:
- metadata:
- labels:
- tier: node
- app: kuryr
- spec:
- hostNetwork: true
- tolerations:
- - key: node-role.kubernetes.io/master
- operator: Exists
- effect: NoSchedule
- serviceAccountName: kuryr-controller
- containers:
- - name: kuryr-cni
- image: {{ openshift_openstack_kuryr_cni_image }}
- imagePullPolicy: IfNotPresent
- command: [ "cni_ds_init" ]
- env:
- - name: CNI_DAEMON
- value: "True"
- - name: KUBERNETES_NODE_NAME
- valueFrom:
- fieldRef:
- fieldPath: spec.nodeName
- securityContext:
- privileged: true
- volumeMounts:
- - name: bin
- mountPath: /opt/cni/bin
- - name: net-conf
- mountPath: /etc/cni/net.d
- - name: config-volume
- mountPath: /tmp/kuryr/kuryr.conf
- subPath: kuryr-cni.conf
- - name: etc
- mountPath: /etc
- - name: proc
- mountPath: /host_proc
- - name: openvswitch
- mountPath: /var/run/openvswitch
- volumes:
- - name: bin
- hostPath:
- path: {{ cni_bin_dir }}
- - name: net-conf
- hostPath:
- path: /etc/cni/net.d
- - name: config-volume
- configMap:
- name: kuryr-config
- - name: etc
- hostPath:
- path: /etc
- - name: proc
- hostPath:
- path: /proc
- - name: openvswitch
- hostPath:
- path: /var/run/openvswitch
|