diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 838fc9f..43ebb5a 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -47,13 +47,16 @@ spec: port: http resources: {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} + {{- if .Values.podPriorityClassName }} + priorityClassName: {{ .Values.podPriorityClassName }} {{- end }} {{- with .Values.tolerations }} tolerations: diff --git a/values.yaml b/values.yaml index ccb18b7..afdafc0 100644 --- a/values.yaml +++ b/values.yaml @@ -22,6 +22,8 @@ serviceAccount: podAnnotations: {} +podPriorityClassName: "" + podSecurityContext: {} # fsGroup: 2000