blob: 8b545133c5316f4e0bc30a685a326d9ad8852583 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ include "cpu-manager.fullname" . }}-reconcile-nodereport-ds
labels:
{{- include "cpu-manager.labels" . | nindent 4 }}
app: cmk-reconcile-nodereport-ds
spec:
selector:
matchLabels:
{{- include "cpu-manager.selectorLabels" . | nindent 6 }}
app: cmk-reconcile-nodereport-ds
template:
metadata:
labels:
{{- include "cpu-manager.selectorLabels" . | nindent 8 }}
app: cmk-reconcile-nodereport-ds
annotations:
{{- toYaml .Values.annotations | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ include "cpu-manager.serviceAccountName" . }}
initContainers:
- args:
- "/cmk/cmk.py init --conf-dir=/etc/cmk --num-exclusive-cores=$NUM_EXCLUSIVE_CORES --num-shared-cores=$NUM_SHARED_CORES"
command:
- "/bin/bash"
- "-c"
env:
- name: CMK_PROC_FS
value: '/proc'
- name: NUM_EXCLUSIVE_CORES
value: {{ .Values.exclusiveNumCores | quote }}
- name: NUM_SHARED_CORES
value: {{ .Values.sharedNumCores | quote }}
securityContext:
{{- toYaml .Values.securityContext | nindent 10 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: cmk-init-pod
resources:
{{- toYaml .Values.resources | nindent 10 }}
volumeMounts:
- mountPath: "/etc/cmk"
name: cmk-conf-dir
- args:
- "/cmk/cmk.py discover --conf-dir=/etc/cmk {{ if .Values.untaintRequired }}--no-taint{{ end }}"
command:
- "/bin/bash"
- "-c"
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
securityContext:
{{- toYaml .Values.securityContext | nindent 10 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: cmk-discover-pod
resources:
{{- toYaml .Values.resources | nindent 10 }}
volumeMounts:
- mountPath: "/etc/cmk"
name: cmk-conf-dir
- args:
- "/cmk/cmk.py install --install-dir=/opt/bin"
command:
- "/bin/bash"
- "-c"
securityContext:
{{- toYaml .Values.securityContext | nindent 10 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: cmk-install-pod
resources:
{{- toYaml .Values.resources | nindent 10 }}
volumeMounts:
- mountPath: "/opt/bin"
name: cmk-install-dir
containers:
- args:
- "/cmk/cmk.py isolate --pool=infra /cmk/cmk.py -- reconcile --interval=$CMK_RECONCILE_SLEEP_TIME --publish"
command:
- "/bin/bash"
- "-c"
env:
- name: CMK_RECONCILE_SLEEP_TIME
value: {{ .Values.reconcileSleepTime | quote }}
- name: CMK_PROC_FS
value: "/host/proc"
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
securityContext:
{{- toYaml .Values.securityContext | nindent 10 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: cmk-reconcile
resources:
{{- toYaml .Values.resources | nindent 10 }}
volumeMounts:
- mountPath: "/host/proc"
name: host-proc
readOnly: true
- mountPath: "/etc/cmk"
name: cmk-conf-dir
- args:
- "/cmk/cmk.py isolate --pool=infra /cmk/cmk.py -- node-report --interval=$CMK_NODE_REPORT_SLEEP_TIME --publish"
command:
- "/bin/bash"
- "-c"
env:
- name: CMK_NODE_REPORT_SLEEP_TIME
value: {{ .Values.nodeReportSleepTime | quote }}
- name: CMK_PROC_FS
value: "/host/proc"
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
securityContext:
{{- toYaml .Values.securityContext | nindent 10 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: cmk-nodereport
resources:
{{- toYaml .Values.resources | nindent 10 }}
volumeMounts:
- mountPath: "/host/proc"
name: host-proc
readOnly: true
- mountPath: "/etc/cmk"
name: cmk-conf-dir
volumes:
- hostPath:
path: "/proc"
name: host-proc
- hostPath:
path: {{ .Values.configDir | quote }}
name: cmk-conf-dir
- hostPath:
path: {{ .Values.installDir | quote }}
name: cmk-install-dir
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
|