aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/init_kubeadm/templates/cmk-init-pod.yaml.j2
blob: a4c735394f88fc8fbc85a85f6aa2717afc1adfe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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