Update versions of addons
[icn.git] / deploy / cpu-manager / base / cmk-discover-pod.yaml
1 # Copyright (c) 2017 Intel Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 #
15 apiVersion: v1
16 kind: Pod
17 metadata:
18   labels:
19     app: cmk-discover-pod
20   name: cmk-discover-pod
21   namespace: cmk-namespace
22 spec:
23   serviceAccountName: cmk-serviceaccount
24   containers:
25   - args:
26     - "/cmk/cmk.py discover --conf-dir=/etc/cmk"
27     command:
28     - "/bin/bash"
29     - "-c"
30     env:
31     - name: NODE_NAME
32       valueFrom:
33         fieldRef:
34           fieldPath: spec.nodeName
35     image: cmk:v1.4.1
36     name: cmk-discover-pod
37     volumeMounts:
38     - mountPath: "/etc/cmk"
39       name: cmk-conf-dir
40   restartPolicy: Never
41   volumes:
42   - hostPath:
43       # Change this to modify the CMK config dir in the host file system.
44       path: "/etc/cmk"
45     name: cmk-conf-dir