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
35 {{- if .Values.prometheusOperator.logFormat }}
36 - --log-format={{ .Values.prometheusOperator.logFormat }}
38 {{- if .Values.prometheusOperator.logLevel }}
39 - --log-level={{ .Values.prometheusOperator.logLevel }}
42 - --crd-apigroup={{ .Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com" }}
43 - --localhost=127.0.0.1
44 - --prometheus-config-reloader={{ .Values.prometheusOperator.prometheusConfigReloaderImage.repository }}:{{ .Values.prometheusOperator.prometheusConfigReloaderImage.tag }}
45 - --config-reloader-image={{ .Values.prometheusOperator.configmapReloadImage.repository }}:{{ .Values.prometheusOperator.configmapReloadImage.tag }}
50 {{ toYaml .Values.prometheusOperator.resources | indent 12 }}
52 allowPrivilegeEscalation: false
53 readOnlyRootFilesystem: true
54 {{- if .Values.prometheusOperator.securityContext }}
56 {{ toYaml .Values.prometheusOperator.securityContext | indent 8 }}
58 serviceAccountName: {{ template "prometheus-operator.operator.serviceAccountName" . }}
59 {{- with .Values.prometheusOperator.nodeSelector }}
61 {{ toYaml . | indent 8 }}
63 {{- with .Values.prometheusOperator.affinity }}
65 {{ toYaml . | indent 8 }}
67 {{- with .Values.prometheusOperator.tolerations }}
69 {{ toYaml . | indent 8 }}