From 5abdf21adba06758c2b51b356503deac52ee3fdd Mon Sep 17 00:00:00 2001 From: dpagidas Date: Thu, 26 Mar 2026 15:47:58 +0200 Subject: [PATCH] feat: add priorityClassName support for apisix-ingress-controller --- charts/apisix-ingress-controller/templates/deployment.yaml | 3 +++ charts/apisix-ingress-controller/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/apisix-ingress-controller/templates/deployment.yaml b/charts/apisix-ingress-controller/templates/deployment.yaml index 2d03b398..97ecdcaf 100644 --- a/charts/apisix-ingress-controller/templates/deployment.yaml +++ b/charts/apisix-ingress-controller/templates/deployment.yaml @@ -42,6 +42,9 @@ spec: labels: {{- include "apisix-ingress-controller-manager.selectorLabels" . | nindent 8 }} spec: + {{- with .Values.deployment.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} {{- $imagePullSecrets := .Values.deployment.imagePullSecrets | default ((.Values.global).imagePullSecrets | default list) }} {{- with $imagePullSecrets }} imagePullSecrets: diff --git a/charts/apisix-ingress-controller/values.yaml b/charts/apisix-ingress-controller/values.yaml index 70d597e6..13cd6839 100644 --- a/charts/apisix-ingress-controller/values.yaml +++ b/charts/apisix-ingress-controller/values.yaml @@ -48,6 +48,8 @@ deployment: # -- Add annotations to Apache APISIX ingress controller resource annotations: {} podAnnotations: {} + # -- Set [priorityClassName](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass) to avoid being evicted by high priority pods + priorityClassName: "" replicas: 1 nodeSelector: {} tolerations: []