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