2 # Source: cmk/templates/serviceaccount.yml
9 # Source: cmk/templates/rbac.yml
11 apiVersion: rbac.authorization.k8s.io/v1beta1
13 name: cmk-custom-resource-definition-controller
14 namespace: kube-system
16 - apiGroups: ["intel.com"]
19 - apiGroups: ["apiextensions.k8s.io"]
20 resources: ["customresourcedefinitions", "customresourcedefinitions.extensions"]
23 # Source: cmk/templates/rbac.yml
25 apiVersion: rbac.authorization.k8s.io/v1beta1
27 name: cmk-daemonset-controller
28 namespace: kube-system
30 - apiGroups: ["extensions"]
31 resources: ["daemonsets", "daemonsets.extensions"]
34 # Source: cmk/templates/rbac.yml
36 apiVersion: rbac.authorization.k8s.io/v1beta1
38 name: cmk-third-party-resource-controller
39 namespace: kube-system
41 - apiGroups: ["cmk.intel.com"]
44 - apiGroups: ["extensions"]
45 resources: ["thirdpartyresources", "thirdpartyresources.extensions"]
48 # Source: cmk/templates/rbac.yml
50 apiVersion: rbac.authorization.k8s.io/v1beta1
52 name: cmk-version-controller
53 namespace: kube-system
55 - nonResourceURLs: ["*"]
59 # Source: cmk/templates/rbac.yml
60 apiVersion: rbac.authorization.k8s.io/v1beta1
61 kind: ClusterRoleBinding
63 name: cmk-role-binding-version
64 namespace: kube-system
66 apiGroup: rbac.authorization.k8s.io
68 name: cmk-version-controller
70 - kind: ServiceAccount
72 namespace: kube-system
74 # Source: cmk/templates/rbac.yml
75 apiVersion: rbac.authorization.k8s.io/v1beta1
76 kind: ClusterRoleBinding
78 name: cmk-role-binding-daemonset
79 namespace: kube-system
81 apiGroup: rbac.authorization.k8s.io
83 name: cmk-daemonset-controller
85 - kind: ServiceAccount
87 namespace: kube-system
89 # Source: cmk/templates/rbac.yml
90 apiVersion: rbac.authorization.k8s.io/v1beta1
91 kind: ClusterRoleBinding
93 name: cmk-role-binding-node
94 namespace: kube-system
96 apiGroup: rbac.authorization.k8s.io
100 - kind: ServiceAccount
102 namespace: kube-system
104 # Source: cmk/templates/rbac.yml
105 apiVersion: rbac.authorization.k8s.io/v1beta1
106 kind: ClusterRoleBinding
108 name: cmk-role-binding-tpr
109 namespace: kube-system
111 apiGroup: rbac.authorization.k8s.io
113 name: cmk-third-party-resource-controller
115 - kind: ServiceAccount
117 namespace: kube-system
119 # Source: cmk/templates/rbac.yml
120 apiVersion: rbac.authorization.k8s.io/v1beta1
121 kind: ClusterRoleBinding
123 name: cmk-role-binding-crd
124 namespace: kube-system
126 apiGroup: rbac.authorization.k8s.io
128 name: cmk-custom-resource-definition-controller
130 - kind: ServiceAccount
132 namespace: kube-system
134 # Source: cmk/templates/daemonset.yml
141 namespace: kube-system
153 requiredDuringSchedulingIgnoredDuringExecution:
155 serviceAccountName: cmk
161 image: localhost:5000/cmk:v1.4.1
162 imagePullPolicy: IfNotPresent
164 - name: CMK_RECONCILE_SLEEP_TIME
172 fieldPath: spec.nodeName
173 command: ["/bin/bash", "-c"]
175 - "/cmk/cmk.py isolate --pool=infra /cmk/cmk.py -- reconcile --interval=$CMK_RECONCILE_SLEEP_TIME --publish"
180 - mountPath: /etc/cmk
182 - mountPath: /opt/bin
183 name: cmk-install-dir
185 image: localhost:5000/cmk:v1.4.1
186 imagePullPolicy: IfNotPresent
188 - name: CMK_NODE_REPORT_SLEEP_TIME
196 fieldPath: spec.nodeName
197 command: ["/bin/bash", "-c"]
199 - "/cmk/cmk.py isolate --pool=infra /cmk/cmk.py -- node-report --interval=$CMK_NODE_REPORT_SLEEP_TIME --publish"
204 - mountPath: /etc/cmk
206 - mountPath: /opt/bin
207 name: cmk-install-dir
210 image: localhost:5000/cmk:v1.4.1
211 imagePullPolicy: IfNotPresent
219 fieldPath: spec.nodeName
220 command: ["/bin/bash", "-c"]
222 - "/cmk/cmk.py init --conf-dir=/etc/cmk --exclusive-mode=packed --num-exclusive-cores=0 --shared-mode=packed --num-shared-cores=0"
227 - mountPath: /etc/cmk
230 - mountPath: /opt/bin
231 name: cmk-install-dir
234 image: localhost:5000/cmk:v1.4.1
235 imagePullPolicy: IfNotPresent
243 fieldPath: spec.nodeName
244 command: ["/bin/bash", "-c"]
246 # - "echo -en '\n'; ls -a /etc/cmk; sleep 10;"
247 - "until [ -d /etc/cmk ]; do sleep 1; done; /cmk/cmk.py discover"
252 - mountPath: /etc/cmk
255 - mountPath: /opt/bin
256 name: cmk-install-dir
259 image: localhost:5000/cmk:v1.4.1
260 imagePullPolicy: IfNotPresent
268 fieldPath: spec.nodeName
269 command: ["/bin/bash", "-c"]
271 - "/cmk/cmk.py install"
276 - mountPath: /etc/cmk
278 - mountPath: /opt/bin
279 name: cmk-install-dir
280 # restartPolicy: Never
293 name: cmk-install-dir