From 6c49182c3c1261fe4bb4e7b2c25139505273a823 Mon Sep 17 00:00:00 2001 From: pavankumar-go Date: Mon, 20 Apr 2026 18:33:25 +0530 Subject: [PATCH 1/2] feat: allow custom labels via Values.podLabels --- charts/apisix/templates/deployment.yaml | 3 +++ charts/apisix/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/apisix/templates/deployment.yaml b/charts/apisix/templates/deployment.yaml index acda6be7..604bd76f 100644 --- a/charts/apisix/templates/deployment.yaml +++ b/charts/apisix/templates/deployment.yaml @@ -43,6 +43,9 @@ spec: {{- end }} labels: {{- include "apisix.selectorLabels" . | nindent 8 }} + {{- if .Values.podLabels }} + {{- toYaml .Values.podLabels | nindent 8 }} + {{- end }} spec: {{- with .Values.global.imagePullSecrets }} imagePullSecrets: diff --git a/charts/apisix/values.yaml b/charts/apisix/values.yaml index 045b98a5..b06f9d78 100644 --- a/charts/apisix/values.yaml +++ b/charts/apisix/values.yaml @@ -40,6 +40,8 @@ replicaCount: 1 priorityClassName: "" # -- Annotations to add to each pod podAnnotations: {} +# -- Labels to add to each pod +podLabels: {} # -- Set the securityContext for Apache APISIX pods podSecurityContext: {} # fsGroup: 2000 From efd8bddb51b069f3bacf121e9e1c57bc0e85d486 Mon Sep 17 00:00:00 2001 From: pavankumar-go Date: Mon, 20 Apr 2026 18:33:25 +0530 Subject: [PATCH 2/2] update docs --- charts/apisix/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/apisix/README.md b/charts/apisix/README.md index f08bb880..4f370e73 100644 --- a/charts/apisix/README.md +++ b/charts/apisix/README.md @@ -206,6 +206,7 @@ The command removes all the Kubernetes components associated with the chart and | nameOverride | string | `""` | | | nodeSelector | object | `{}` | Node labels for Apache APISIX pod assignment | | podAnnotations | object | `{}` | Annotations to add to each pod | +| podLabels | object | `{}` | Labels to add to each pod | | podDisruptionBudget | object | `{"enabled":false,"maxUnavailable":1,"minAvailable":"90%"}` | See https://kubernetes.io/docs/tasks/run-application/configure-pdb/ for more details | | podDisruptionBudget.enabled | bool | `false` | Enable or disable podDisruptionBudget | | podDisruptionBudget.maxUnavailable | int | `1` | Set the maxUnavailable of podDisruptionBudget |