rancher-charts/packages/rancher-monitoring/rancher-prometheus-adapter/generated-changes/patch/templates/deployment.yaml.patch

46 lines
1.8 KiB
Diff
Raw Normal View History

--- charts-original/templates/deployment.yaml
+++ charts/templates/deployment.yaml
@@ -46,7 +46,7 @@
{{- end}}
containers:
- name: {{ .Chart.Name }}
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
+ image: "{{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.env }}
env:
@@ -60,7 +60,6 @@
- --tls-private-key-file=/var/run/serving-cert/tls.key
{{- end }}
- --cert-dir=/tmp/cert
- - --logtostderr=true
- --prometheus-url={{ tpl .Values.prometheus.url . }}{{ if .Values.prometheus.port }}:{{ .Values.prometheus.port }}{{end}}{{ .Values.prometheus.path }}
- --metrics-relist-interval={{ .Values.metricsRelistInterval }}
- --v={{ .Values.logLevel }}
@@ -105,8 +104,10 @@
name: volume-serving-cert
readOnly: true
{{- end }}
- nodeSelector:
- {{- toYaml .Values.nodeSelector | nindent 8 }}
+ nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
+{{- if .Values.nodeSelector }}
+{{- toYaml .Values.nodeSelector | nindent 8 }}
+{{- end }}
affinity:
{{- toYaml .Values.affinity | nindent 8 }}
topologySpreadConstraints:
@@ -116,8 +117,10 @@
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- end }}
- tolerations:
- {{- toYaml .Values.tolerations | nindent 8 }}
+ tolerations: {{ include "linux-node-tolerations" . | nindent 8 }}
+{{- if .Values.tolerations }}
+{{- toYaml .Values.tolerations | nindent 8 }}
+{{- end }}
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
{{- range .Values.image.pullSecrets }}