From c93dc8ca8b2020dba106df994cb199f759b526e1 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Mon, 18 Apr 2022 11:03:21 +0200 Subject: [PATCH] feat: support pod priorityClassName --- templates/deployment.yaml | 9 ++++++--- values.yaml | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) 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