2021-02-26 01:34:15 +00:00
|
|
|
--- charts-original/templates/deployment.yaml
|
|
|
|
+++ charts/templates/deployment.yaml
|
2024-09-27 09:52:45 +00:00
|
|
|
@@ -52,9 +52,6 @@
|
2023-06-08 20:53:34 +00:00
|
|
|
{{- end }}
|
|
|
|
annotations:
|
2021-02-26 01:34:15 +00:00
|
|
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
2023-06-08 20:53:34 +00:00
|
|
|
- {{- if .Values.isClusterService }}
|
2021-02-26 01:34:15 +00:00
|
|
|
- scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
|
2023-06-08 20:53:34 +00:00
|
|
|
- {{- end }}
|
2021-07-23 09:10:25 +00:00
|
|
|
{{- if .Values.podAnnotations }}
|
|
|
|
{{ toYaml .Values.podAnnotations | indent 8 }}
|
2023-06-08 20:53:34 +00:00
|
|
|
{{- end }}
|
2024-09-27 09:52:45 +00:00
|
|
|
@@ -80,9 +77,15 @@
|
2023-06-08 20:53:34 +00:00
|
|
|
topologySpreadConstraints:
|
2024-01-25 14:13:35 +00:00
|
|
|
{{ tpl (toYaml .Values.topologySpreadConstraints) $ | indent 8 }}
|
2021-02-26 01:34:15 +00:00
|
|
|
{{- end }}
|
|
|
|
- {{- if .Values.tolerations }}
|
|
|
|
+ {{- if or (.Values.isClusterService) (.Values.tolerations) }}
|
|
|
|
tolerations:
|
|
|
|
+ {{- if .Values.isClusterService }}
|
|
|
|
+ - key: CriticalAddonsOnly
|
|
|
|
+ operator: Exists
|
|
|
|
+ {{- end }}
|
|
|
|
+ {{- if .Values.tolerations }}
|
|
|
|
{{ toYaml .Values.tolerations | indent 8 }}
|
2023-06-12 18:19:27 +00:00
|
|
|
+ {{- end }}
|
2021-02-26 01:34:15 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.nodeSelector }}
|
2023-06-12 18:19:27 +00:00
|
|
|
nodeSelector:
|
2024-09-27 09:52:45 +00:00
|
|
|
@@ -94,7 +97,7 @@
|
2021-02-26 01:34:15 +00:00
|
|
|
{{- end }}
|
|
|
|
containers:
|
|
|
|
- name: "coredns"
|
2023-06-08 20:53:34 +00:00
|
|
|
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
|
|
|
+ image: {{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
|
2021-02-26 01:34:15 +00:00
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
|
args: [ "-conf", "/etc/coredns/Corefile" ]
|
|
|
|
volumeMounts:
|