-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdaemonset.yaml
More file actions
41 lines (41 loc) · 1.28 KB
/
daemonset.yaml
File metadata and controls
41 lines (41 loc) · 1.28 KB
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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
app: {{ template "fullname" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
component: {{ .Values.controller.name }}
name: {{ template "fullname" . }}-{{ .Values.controller.name }}
spec:
selector:
matchLabels:
app: {{ template "fullname" . }}
component: {{ .Values.controller.name }}
template:
metadata:
labels:
app: {{ template "fullname" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
component: {{ .Values.controller.name }}
spec:
hostNetwork: true
containers:
- name: {{ .Values.controller.name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext:
privileged: true
command:
- ipmanager
- claimcontroller
- --iface={{ .Values.controller.interface }}
- --logtostderr
- --v=5
- --hb=500ms
resources:
{{ toYaml .Values.controller.resources | indent 12 }}
{{- with .Values.controller.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
serviceAccountName: {{ template "fullname" . }}