Update versions of addons
[icn.git] / deploy / cpu-manager / base / cmk-init-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-init-pod
20   name: cmk-init-pod
21   namespace: cmk-namespace  
22 spec:
23   serviceAccountName: cmk-serviceaccount
24   containers:
25   - args:
26     - "/cmk/cmk.py init --conf-dir=/etc/cmk --num-exclusive-cores=$NUM_EXCLUSIVE_CORES --num-shared-cores=$NUM_SHARED_CORES"
27     command:
28     - "/bin/bash"
29     - "-c"
30     env:
31     - name: CMK_PROC_FS
32       value: '/proc'
33     - name: NUM_EXCLUSIVE_CORES
34       # Change this to modify the value passed to `--num-exclusive-cores` flag.
35       value: '4'
36     - name: NUM_SHARED_CORES
37       # Change this to modify the value passed to `--num-shared-cores` flag.
38       value: '1'
39     image: cmk:v1.4.1
40     name: cmk-init-pod
41     volumeMounts:
42     - mountPath: "/etc/cmk"
43       name: cmk-conf-dir
44   restartPolicy: Never
45   volumes:
46   - hostPath:
47       # Change this to modify the CMK config dir in the host file system.
48       path: "/etc/cmk"
49     name: cmk-conf-dir