feat: Support Affinity and Tolerations for Argo Chart (#206)

This commit is contained in:
Yong Wen Chua 2020-02-13 12:12:30 +08:00 committed by GitHub
parent 62f920f6c0
commit d43891fc38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 2 deletions

View file

@ -35,7 +35,7 @@ spec:
- name: {{ .Values.ui.podPortName }}
containerPort: 8001
protocol: TCP
{{- end }}
{{- end }}
env:
{{- if .Values.ui.forceNamespaceIsolation }}
- name: FORCE_NAMESPACE_ISOLATION
@ -52,4 +52,17 @@ spec:
value: /
resources:
{{- toYaml .Values.ui.resources | nindent 12 }}
{{- with .Values.ui.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.ui.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.ui.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end -}}

View file

@ -52,3 +52,15 @@ spec:
ports:
- containerPort: 8080
{{- end }}
{{- with .Values.controller.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.controller.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.controller.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}