4 name: {{ template "metallb.fullname" . }}-controller
6 heritage: {{ .Release.Service | quote }}
7 release: {{ .Release.Name | quote }}
8 chart: {{ template "metallb.chart" . }}
9 app: {{ template "metallb.name" . }}
12 revisionHistoryLimit: 3
15 app: {{ template "metallb.name" . }}
17 release: {{ .Release.Name | quote }}
21 heritage: {{ .Release.Service | quote }}
22 release: {{ .Release.Name | quote }}
23 chart: {{ template "metallb.chart" . }}
24 app: {{ template "metallb.name" . }}
26 {{- if .Values.prometheus.scrapeAnnotations }}
28 prometheus.io/scrape: "true"
29 prometheus.io/port: "7472"
32 serviceAccountName: {{ template "metallb.controllerServiceAccountName" . }}
33 terminationGracePeriodSeconds: 0
36 runAsUser: 65534 # nobody
38 "beta.kubernetes.io/os": linux
39 {{- with .Values.controller.nodeSelector }}
40 {{ toYaml . | indent 8 }}
42 {{- with .Values.controller.tolerations }}
44 {{ toYaml . | indent 8 }}
46 {{- with .Values.controller.affinity }}
48 {{ toYaml . | indent 8 }}
52 image: {{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}
53 imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
56 - --config={{ template "metallb.configMapName" . }}
61 {{ toYaml .Values.controller.resources | indent 10 }}
63 allowPrivilegeEscalation: false
67 readOnlyRootFilesystem: true