-
Notifications
You must be signed in to change notification settings - Fork 24
/
koordlet.yaml
170 lines (170 loc) · 5.39 KB
/
koordlet.yaml
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
163
164
165
166
167
168
169
170
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: koordlet
namespace: {{ .Values.installation.namespace }}
labels:
koord-app: koordlet
spec:
selector:
matchLabels:
koord-app: koordlet
minReadySeconds: 10
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 20%
template:
metadata:
labels:
koord-app: koordlet
runtimeproxy.koordinator.sh/skip-hookserver: "true"
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- command:
- /koordlet
args:
- -cgroup-root-dir=/host-cgroup/
{{- if .Values.koordlet.features }}
- -feature-gates={{ .Values.koordlet.features }}
{{- else }}
# other feature-gates enabled by default include BECPUSuppress, CPUBurst, RdtResctrl and NodeTopologyReport
- -feature-gates=BECPUEvict=true,BEMemoryEvict=true,CgroupReconcile=true,Accelerators=true
{{- end }}
- -runtime-hooks-host-endpoint={{ .Values.koordlet.hostDirs.koordletSockDir }}/koordlet.sock
- --logtostderr=true
- --v={{ .Values.koordlet.log.level }}
image: {{ .Values.imageRepositoryHost }}/{{ .Values.koordlet.image.repository }}:{{ .Values.koordlet.image.tag }}
imagePullPolicy: Always
name: koordlet
env:
- name: NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
resources:
{{- toYaml .Values.koordlet.resources | nindent 12 }}
securityContext:
allowPrivilegeEscalation: true
capabilities:
add:
- SYS_ADMIN
privileged: true
volumeMounts:
- mountPath: /etc/localtime
name: host-time
readOnly: true
- mountPath: /host-cgroup/
name: host-cgroup-root
- mountPath: /host-sys-fs/
name: host-sys-fs
mountPropagation: Bidirectional
- mountPath: /host-var-run/
name: host-var-run
readOnly: true
- mountPath: /host-run/
name: host-run
readOnly: true
- mountPath: /host-var-run-koordlet/
name: host-var-run-koordlet
mountPropagation: Bidirectional
- mountPath: /prediction-checkpoints
name: host-koordlet-checkpoint-dir
mountPropagation: Bidirectional
- mountPath: /host-sys/
name: host-sys
readOnly: true
- mountPath: /etc/kubernetes/
name: host-kubernetes
readOnly: true
- mountPath: /host-etc-hookserver/
name: host-etc-hookserver
mountPropagation: Bidirectional
- mountPath: /var/lib/kubelet
name: host-kubelet-rootdir
readOnly: true
- mountPath: /dev
name: host-dev
mountPropagation: HostToContainer
- mountPath: /metric-data/
name: metric-db-path
{{- if contains "TerwayQoS=true" .Values.koordlet.features }}
- mountPath: /host-var-lib/terway/qos
name: host-terway-qos
{{- end }}
tolerations:
- operator: Exists
hostNetwork: true
hostPID: true
terminationGracePeriodSeconds: 10
serviceAccountName: koordlet
volumes:
- hostPath:
path: /etc/localtime
type: ""
name: host-time
- hostPath:
path: /sys/fs/cgroup/
type: ""
name: host-cgroup-root
- hostPath:
path: /sys/fs/
type: ""
name: host-sys-fs
- hostPath:
path: /var/run/
type: ""
name: host-var-run
- hostPath:
path: /run/
type: ""
name: host-run
- hostPath:
path: {{ .Values.koordlet.hostDirs.koordletSockDir }}
type: "DirectoryOrCreate"
name: host-var-run-koordlet
- hostPath:
path: {{ .Values.koordlet.hostDirs.predictionCheckpointDir }}
type: "DirectoryOrCreate"
name: host-koordlet-checkpoint-dir
- hostPath:
path: /sys/
type: ""
name: host-sys
- hostPath:
path: {{ .Values.koordlet.hostDirs.kubeletConfigDir }}
type: ""
name: host-kubernetes
- hostPath:
path: {{ .Values.koordlet.hostDirs.koordProxyRegisterDir }}
type: ""
name: host-etc-hookserver
- hostPath:
path: {{ .Values.koordlet.hostDirs.kubeletLibDir }}
type: ""
name: host-kubelet-rootdir
- hostPath:
path: /dev
type: ""
name: host-dev
{{- if .Values.koordlet.hostDirs.koordletTSDBDir }}
- hostPath:
path: {{ .Values.koordlet.hostDirs.koordletTSDBDir }}
type: ""
{{- else }}
- emptyDir:
medium: Memory
sizeLimit: 150Mi
{{- end }}
name: metric-db-path
{{- if contains "TerwayQoS=true" .Values.koordlet.features }}
- hostPath:
path: /var/lib/terway/qos
type: "DirectoryOrCreate"
name: host-terway-qos
{{- end }}