summaryrefslogtreecommitdiffstats
path: root/roles/kuryr/templates/cni-daemonset.yaml.j2
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-10-20 11:02:23 -0400
committerGitHub <noreply@github.com>2017-10-20 11:02:23 -0400
commit94a75431044d6124dcb22659cbecbb09c3cb3a38 (patch)
tree22f83883627f562e42e775f029a2415cafba60d9 /roles/kuryr/templates/cni-daemonset.yaml.j2
parent30d3fc6ed990c8e9f13b4e96e6e7acff13500e1e (diff)
parente6ea6839a8f657c1266c25ba4aba43c837329fa3 (diff)
downloadopenshift-94a75431044d6124dcb22659cbecbb09c3cb3a38.tar.gz
openshift-94a75431044d6124dcb22659cbecbb09c3cb3a38.tar.bz2
openshift-94a75431044d6124dcb22659cbecbb09c3cb3a38.tar.xz
openshift-94a75431044d6124dcb22659cbecbb09c3cb3a38.zip
Merge pull request #5574 from dulek/containerized_kuryr_support
Initial Kuryr support
Diffstat (limited to 'roles/kuryr/templates/cni-daemonset.yaml.j2')
-rw-r--r--roles/kuryr/templates/cni-daemonset.yaml.j253
1 files changed, 53 insertions, 0 deletions
diff --git a/roles/kuryr/templates/cni-daemonset.yaml.j2 b/roles/kuryr/templates/cni-daemonset.yaml.j2
new file mode 100644
index 000000000..39348ae90
--- /dev/null
+++ b/roles/kuryr/templates/cni-daemonset.yaml.j2
@@ -0,0 +1,53 @@
+# 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: kuryr/cni:latest
+ imagePullPolicy: IfNotPresent
+ command: [ "cni_ds_init" ]
+ 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
+ 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 \ No newline at end of file