Update versions of addons
[icn.git] / deploy / cpu-manager / base / cmk-nodereport-daemonset.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: apps/v1
16 kind: DaemonSet
17 metadata:
18   labels:
19     app: cmk-node-report-ds-all
20 # Needed for k8s < 1.7
21 #  annotations:
22 #    "scheduler.alpha.kubernetes.io/tolerations": '[{"key":"cmk", "value":"true"}]'
23   name: cmk-node-report-ds-all
24   namespace: cmk-namespace
25 spec:
26   selector:
27     matchLabels:
28       app: cmk-node-report-ds-all
29   template:
30     metadata:
31       labels:
32         app: cmk-node-report-ds-all
33     spec:
34       serviceAccountName: cmk-serviceaccount
35 # Needed for k8s >= 1.7
36 #      tolerations:
37 #      - operator: "Exists"
38       containers:
39       - args:
40         - "/cmk/cmk.py isolate --pool=infra /cmk/cmk.py -- node-report --interval=$CMK_NODE_REPORT_SLEEP_TIME --publish"
41         command:
42         - "/bin/bash"
43         - "-c"
44         env:
45         - name: CMK_NODE_REPORT_SLEEP_TIME
46           # Change this to modify the sleep interval between consecutive
47           # cmk node report runs. The value is specified in seconds.
48           value: '60'
49         - name: CMK_PROC_FS
50           value: "/host/proc"
51         - name: NODE_NAME
52           valueFrom:
53             fieldRef:
54               fieldPath: spec.nodeName
55         image: cmk:v1.4.1
56         name: cmk-nodereport
57         volumeMounts:
58         - mountPath: "/host/proc"
59           name: host-proc
60           readOnly: true
61         - mountPath: "/etc/cmk"
62           name: cmk-conf-dir
63       volumes:
64       - hostPath:
65           path: "/proc"
66         name: host-proc
67       - hostPath:
68           # Change this to modify the CMK config dir in the host file system.
69           path: "/etc/cmk"
70         name: cmk-conf-dir