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: ""