This is an automated email from the ASF dual-hosted git repository.
AlinsRan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new a56a8bd feat: allow custom labels via Values.podLabels (#965)
a56a8bd is described below
commit a56a8bd8b8eb9822c5f96f311a577508a2e28f27
Author: Pavan Kumar <[email protected]>
AuthorDate: Wed Sep 30 13:05:05 2026 +0530
feat: allow custom labels via Values.podLabels (#965)
---
charts/apisix/README.md | 1 +
charts/apisix/templates/deployment.yaml | 3 +++
charts/apisix/values.yaml | 2 ++
3 files changed, 6 insertions(+)
diff --git a/charts/apisix/README.md b/charts/apisix/README.md
index 147bdef..d1a396d 100644
--- a/charts/apisix/README.md
+++ b/charts/apisix/README.md
@@ -271,6 +271,7 @@ The command removes all the Kubernetes components
associated with the chart and
| nameOverride | string | `""` | String to partially override the chart
fullname |
| 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 |
diff --git a/charts/apisix/templates/deployment.yaml
b/charts/apisix/templates/deployment.yaml
index 368c744..ec8c634 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 7e7f493..24356d1 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