1 {{- if .Values.prometheusOperator.enabled }}
5 name: {{ template "prometheus-operator.fullname" . }}-operator
7 app: {{ template "prometheus-operator.name" . }}-operator
8 {{ include "prometheus-operator.labels" . | indent 4 }}
13 app: {{ template "prometheus-operator.name" . }}-operator
14 release: {{ .Release.Name | quote }}
18 app: {{ template "prometheus-operator.name" . }}-operator
19 {{ include "prometheus-operator.labels" . | indent 8 }}
20 {{- if .Values.prometheusOperator.podLabels }}
21 {{ toYaml .Values.prometheusOperator.podLabels | indent 8 }}
24 {{- if .Values.prometheusOperator.priorityClassName }}
25 priorityClassName: {{ .Values.prometheusOperator.priorityClassName }}
28 - name: {{ template "prometheus-operator.name" . }}
29 image: "{{ .Values.prometheusOperator.image.repository }}:{{ .Values.prometheusOperator.image.tag }}"
30 imagePullPolicy: "{{ .Values.prometheusOperator.image.pullPolicy }}"
32 {{- if .Values.prometheusOperator.kubeletService.enabled }}
33 - --kubelet-service={{ .Values.prometheusOperator.kubeletService.namespace }}/{{ template "prometheus-operator.fullname" . }}-kubelet
36 - --crd-apigroup={{ .Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com" }}
37 - --localhost=127.0.0.1
38 - --prometheus-config-reloader={{ .Values.prometheusOperator.prometheusConfigReloaderImage.repository }}:{{ .Values.prometheusOperator.prometheusConfigReloaderImage.tag }}
39 - --config-reloader-image={{ .Values.prometheusOperator.configmapReloadImage.repository }}:{{ .Values.prometheusOperator.configmapReloadImage.tag }}
44 {{ toYaml .Values.prometheusOperator.resources | indent 12 }}
46 allowPrivilegeEscalation: false
47 readOnlyRootFilesystem: true
48 {{- if .Values.prometheusOperator.securityContext }}
50 {{ toYaml .Values.prometheusOperator.securityContext | indent 8 }}
52 serviceAccountName: {{ template "prometheus-operator.operator.serviceAccountName" . }}
53 {{- with .Values.prometheusOperator.nodeSelector }}
55 {{ toYaml . | indent 8 }}
57 {{- with .Values.prometheusOperator.affinity }}
59 {{ toYaml . | indent 8 }}
61 {{- with .Values.prometheusOperator.tolerations }}
63 {{ toYaml . | indent 8 }}