summaryrefslogtreecommitdiffstats
path: root/roles/kuryr/templates/cni-daemonset.yaml.j2
diff options
context:
space:
mode:
authorMichał Dulko <mdulko@redhat.com>2017-11-13 11:41:58 +0100
committerMichał Dulko <mdulko@redhat.com>2017-12-22 13:44:12 +0100
commitd515d4542f648194effb5be242d95f2d4834d7de (patch)
treec2cb086bc0013209b0a6e9d1328db3b205b9dba6 /roles/kuryr/templates/cni-daemonset.yaml.j2
parentcbcfd8a6d669e5b76afca79d3523bc537df804d3 (diff)
downloadopenshift-d515d4542f648194effb5be242d95f2d4834d7de.tar.gz
openshift-d515d4542f648194effb5be242d95f2d4834d7de.tar.bz2
openshift-d515d4542f648194effb5be242d95f2d4834d7de.tar.xz
openshift-d515d4542f648194effb5be242d95f2d4834d7de.zip
Configure Kuryr CNI daemon
Kuryr CNI daemon is scalability improvement that moves watching K8s API and VIF plugging into a separate entity called kuryr-daemon. Kuryr-daemon will run in a container and serve requests from kuryr-driver.
Diffstat (limited to 'roles/kuryr/templates/cni-daemonset.yaml.j2')
-rw-r--r--roles/kuryr/templates/cni-daemonset.yaml.j219
1 files changed, 18 insertions, 1 deletions
diff --git a/roles/kuryr/templates/cni-daemonset.yaml.j2 b/roles/kuryr/templates/cni-daemonset.yaml.j2
index 39348ae90..09f4c7dfe 100644
--- a/roles/kuryr/templates/cni-daemonset.yaml.j2
+++ b/roles/kuryr/templates/cni-daemonset.yaml.j2
@@ -26,6 +26,13 @@ spec:
image: kuryr/cni:latest
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:
@@ -38,6 +45,10 @@ spec:
subPath: kuryr-cni.conf
- name: etc
mountPath: /etc
+ - name: proc
+ mountPath: /host_proc
+ - name: openvswitch
+ mountPath: /var/run/openvswitch
volumes:
- name: bin
hostPath:
@@ -50,4 +61,10 @@ spec:
name: kuryr-config
- name: etc
hostPath:
- path: /etc \ No newline at end of file
+ path: /etc
+ - name: proc
+ hostPath:
+ path: /proc
+ - name: openvswitch
+ hostPath:
+ path: /var/run/openvswitch