mirror of https://git.rancher.io/charts
50 lines
3.2 KiB
Diff
50 lines
3.2 KiB
Diff
--- charts-original/templates/prometheus-operator/deployment.yaml
|
|
+++ charts/templates/prometheus-operator/deployment.yaml
|
|
@@ -33,9 +33,9 @@
|
|
containers:
|
|
- name: {{ template "kube-prometheus-stack.name" . }}
|
|
{{- if .Values.prometheusOperator.image.sha }}
|
|
- image: "{{ .Values.prometheusOperator.image.repository }}:{{ .Values.prometheusOperator.image.tag }}@sha256:{{ .Values.prometheusOperator.image.sha }}"
|
|
+ image: "{{ template "system_default_registry" . }}{{ .Values.prometheusOperator.image.repository }}:{{ .Values.prometheusOperator.image.tag }}@sha256:{{ .Values.prometheusOperator.image.sha }}"
|
|
{{- else }}
|
|
- image: "{{ .Values.prometheusOperator.image.repository }}:{{ .Values.prometheusOperator.image.tag }}"
|
|
+ image: "{{ template "system_default_registry" . }}{{ .Values.prometheusOperator.image.repository }}:{{ .Values.prometheusOperator.image.tag }}"
|
|
{{- end }}
|
|
imagePullPolicy: "{{ .Values.prometheusOperator.image.pullPolicy }}"
|
|
args:
|
|
@@ -66,9 +66,9 @@
|
|
- --alertmanager-default-base-image={{ .Values.prometheusOperator.alertmanagerDefaultBaseImage }}
|
|
{{- end }}
|
|
{{- if .Values.prometheusOperator.prometheusConfigReloaderImage.sha }}
|
|
- - --prometheus-config-reloader={{ .Values.prometheusOperator.prometheusConfigReloaderImage.repository }}:{{ .Values.prometheusOperator.prometheusConfigReloaderImage.tag }}@sha256:{{ .Values.prometheusOperator.prometheusConfigReloaderImage.sha }}
|
|
+ - --prometheus-config-reloader={{ template "system_default_registry" . }}{{ .Values.prometheusOperator.prometheusConfigReloaderImage.repository }}:{{ .Values.prometheusOperator.prometheusConfigReloaderImage.tag }}@sha256:{{ .Values.prometheusOperator.prometheusConfigReloaderImage.sha }}
|
|
{{- else }}
|
|
- - --prometheus-config-reloader={{ .Values.prometheusOperator.prometheusConfigReloaderImage.repository }}:{{ .Values.prometheusOperator.prometheusConfigReloaderImage.tag }}
|
|
+ - --prometheus-config-reloader={{ template "system_default_registry" . }}{{ .Values.prometheusOperator.prometheusConfigReloaderImage.repository }}:{{ .Values.prometheusOperator.prometheusConfigReloaderImage.tag }}
|
|
{{- end }}
|
|
- --config-reloader-cpu={{ .Values.prometheusOperator.configReloaderCpu }}
|
|
- --config-reloader-memory={{ .Values.prometheusOperator.configReloaderMemory }}
|
|
@@ -130,16 +130,16 @@
|
|
hostNetwork: true
|
|
dnsPolicy: ClusterFirstWithHostNet
|
|
{{- end }}
|
|
- {{- with .Values.prometheusOperator.nodeSelector }}
|
|
- nodeSelector:
|
|
+ nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
|
|
+{{- with .Values.prometheusOperator.nodeSelector }}
|
|
{{ toYaml . | indent 8 }}
|
|
- {{- end }}
|
|
+{{- end }}
|
|
{{- with .Values.prometheusOperator.affinity }}
|
|
affinity:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
- {{- with .Values.prometheusOperator.tolerations }}
|
|
- tolerations:
|
|
+ tolerations: {{ include "linux-node-tolerations" . | nindent 8 }}
|
|
+{{- with .Values.prometheusOperator.tolerations }}
|
|
{{ toYaml . | indent 8 }}
|
|
- {{- end }}
|
|
+{{- end }}
|
|
{{- end }}
|