From 837563c976cbdbba451e9a8477255660cc7e134b Mon Sep 17 00:00:00 2001 From: Ahmad Hamade Date: Mon, 30 Nov 2020 01:04:25 +0100 Subject: [PATCH] Adding priorityClassName to helm chart (#215) * Adding priorityClassName to helm chart and README file * removed README and revert chart version --- charts/actions-runner-controller/templates/deployment.yaml | 3 +++ charts/actions-runner-controller/values.yaml | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/charts/actions-runner-controller/templates/deployment.yaml b/charts/actions-runner-controller/templates/deployment.yaml index 6ac64a30..04cfb0cc 100644 --- a/charts/actions-runner-controller/templates/deployment.yaml +++ b/charts/actions-runner-controller/templates/deployment.yaml @@ -25,6 +25,9 @@ spec: serviceAccountName: {{ include "actions-runner-controller.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} + {{- with .Values.priorityClassName }} + priorityClassName: "{{ . }}" + {{- end }} containers: - args: - "--metrics-addr=127.0.0.1:8080" diff --git a/charts/actions-runner-controller/values.yaml b/charts/actions-runner-controller/values.yaml index 702e61bd..06043b18 100644 --- a/charts/actions-runner-controller/values.yaml +++ b/charts/actions-runner-controller/values.yaml @@ -79,3 +79,8 @@ nodeSelector: {} tolerations: [] affinity: {} + +# Leverage a PriorityClass to ensure your pods survive resource shortages +# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/ +# PriorityClass: system-cluster-critical +priorityClassName: ""