--- charts-original/templates/deployment.yaml +++ charts/templates/deployment.yaml @@ -50,7 +50,7 @@ {{- end }} containers: - name: {{ .Chart.Name }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + image: "{{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} {{- with .Values.env }} env: @@ -111,6 +111,7 @@ {{- with .Values.extraContainers }} {{- toYaml . | nindent 6 }} {{- end }} + nodeSelector: {{ include "linux-node-selector" . | nindent 8 }} nodeSelector: {{- toYaml .Values.nodeSelector | nindent 8 }} affinity: @@ -124,8 +125,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 }}