blob: 53e2c675071b0f2b4153c4c02a6e0ebf9b682742 (
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
|
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ template "metallb.fullname" . }}-speaker
labels:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
chart: {{ template "metallb.chart" . }}
app: {{ template "metallb.name" . }}
component: speaker
spec:
selector:
matchLabels:
app: {{ template "metallb.name" . }}
component: speaker
release: {{ .Release.Name | quote }}
template:
metadata:
labels:
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
chart: {{ template "metallb.chart" . }}
app: {{ template "metallb.name" . }}
component: speaker
{{- if .Values.prometheus.scrapeAnnotations }}
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "7472"
{{- end }}
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
serviceAccountName: {{ template "metallb.speakerServiceAccountName" . }}
terminationGracePeriodSeconds: 0
hostNetwork: true
containers:
- name: speaker
image: {{ .Values.speaker.image.repository }}:{{ .Values.speaker.image.tag }}
imagePullPolicy: {{ .Values.speaker.image.pullPolicy }}
args:
- --port=7472
- --config={{ template "metallb.configMapName" . }}
env:
- name: METALLB_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: METALLB_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
ports:
- name: monitoring
containerPort: 7472
resources:
{{ toYaml .Values.speaker.resources | indent 10 }}
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
add:
- NET_ADMIN
- NET_RAW
- SYS_ADMIN
nodeSelector:
"beta.kubernetes.io/os": linux
{{- with .Values.speaker.nodeSelector }}
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.speaker.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.speaker.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
|