From fa90940efa04bca25ab1998b12e6bd1f38f4f01b Mon Sep 17 00:00:00 2001 From: Manjunath Shenoy Date: Tue, 14 Jul 2020 12:29:08 -0400 Subject: [PATCH] adding priority class support for argo-server and workflow-controller deployments --- charts/argo/templates/server-deployment.yaml | 2 ++ charts/argo/templates/workflow-controller-deployment.yaml | 2 ++ charts/argo/values.yaml | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/charts/argo/templates/server-deployment.yaml b/charts/argo/templates/server-deployment.yaml index 52acbc79..508bdc7f 100644 --- a/charts/argo/templates/server-deployment.yaml +++ b/charts/argo/templates/server-deployment.yaml @@ -25,6 +25,8 @@ spec: annotations: {{ toYaml .Values.server.podAnnotations | indent 8}}{{- end }} spec: + {{- if .Values.server.priorityClassName }} + priorityClassName: {{ .Values.server.priorityClassName | quote }} serviceAccountName: {{ .Values.server.serviceAccount | quote }} containers: - name: argo-server diff --git a/charts/argo/templates/workflow-controller-deployment.yaml b/charts/argo/templates/workflow-controller-deployment.yaml index 852bad52..deb1f172 100644 --- a/charts/argo/templates/workflow-controller-deployment.yaml +++ b/charts/argo/templates/workflow-controller-deployment.yaml @@ -25,6 +25,8 @@ spec: annotations: {{ toYaml .Values.controller.podAnnotations | indent 8}}{{- end }} spec: + {{- if .Values.controller.priorityClassName }} + priorityClassName: {{ .Values.controller.priorityClassName | quote }} serviceAccountName: {{ .Values.controller.serviceAccount | quote }} containers: - name: controller diff --git a/charts/argo/values.yaml b/charts/argo/values.yaml index 0dc5dd47..ea3c8c03 100644 --- a/charts/argo/values.yaml +++ b/charts/argo/values.yaml @@ -108,6 +108,8 @@ controller: nodeSelector: {} tolerations: [] affinity: {} + ## Replace system_priority_class with your priorityClassName. See https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass + priorityClassName: system_priority_class # executor controls how the init and wait container should be customized executor: @@ -218,6 +220,8 @@ server: # key: client-secret ## The OIDC redirect URL. Should be in the form /oauth2/callback. # redirectUrl: https://argo/oauth2/callback + ## Replace system_priority_class with your priorityClassName. See https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass + priorityClassName: system_priority_class # Influences the creation of the ConfigMap for the workflow-controller itself. useDefaultArtifactRepo: false