aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/init_kubeadm/templates/cmk-init-pod.yaml.j2
diff options
context:
space:
mode:
authorVolodymyr Mytnyk <volodymyrx.mytnyk@intel.com>2019-04-10 11:53:33 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-04-10 11:53:33 +0000
commit841206158643423b957a9c39b7ff0b6bae58f3be (patch)
treecce6cea1564c85a1c226a3985559ff783396bac7 /ansible/roles/init_kubeadm/templates/cmk-init-pod.yaml.j2
parenta4f75aa4af079ae76a0da4350c344023d78c7d93 (diff)
parentc66efd482c9c4aabf8a82d1f554ef5fca91b3bcb (diff)
Merge "Add ansible scripts to deploy Kubernetes"
Diffstat (limited to 'ansible/roles/init_kubeadm/templates/cmk-init-pod.yaml.j2')
-rw-r--r--ansible/roles/init_kubeadm/templates/cmk-init-pod.yaml.j218
1 files changed, 18 insertions, 0 deletions
diff --git a/ansible/roles/init_kubeadm/templates/cmk-init-pod.yaml.j2 b/ansible/roles/init_kubeadm/templates/cmk-init-pod.yaml.j2
new file mode 100644
index 000000000..a4c735394
--- /dev/null
+++ b/ansible/roles/init_kubeadm/templates/cmk-init-pod.yaml.j2
@@ -0,0 +1,18 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ labels:
+ app: cmk-cluster-init-pod
+ name: cmk-cluster-init-pod
+spec:
+ serviceAccountName: cmk-serviceaccount
+ containers:
+ - args:
+ # Change this value to pass different options to cluster-init.
+ - "/cmk/cmk.py cluster-init --host-list={{ ansible_hostname }} --saname=cmk-serviceaccount --cmk-img=si-docker.ir.intel.com/vcmts-ubuntu/cmk --num-dp-cores=4 --dp-mode=spread --num-cp-cores=1 --cp-mode=spread"
+ command:
+ - "/bin/bash"
+ - "-c"
+ image: si-docker.ir.intel.com/vcmts-ubuntu/cmk
+ name: cmk-cluster-init-pod
+ restartPolicy: Never