diff --git a/charts/aisix/README.md b/charts/aisix/README.md index 8b84cc0..325b13a 100644 --- a/charts/aisix/README.md +++ b/charts/aisix/README.md @@ -531,6 +531,7 @@ rejects. New installs set the value in its own key in `values.yaml` or under | admin.service.annotations | object | `{}` | Extra annotations for the admin Service | | admin.service.port | int | `3001` | Admin Service port | | affinity | object | `{}` | Affinity rules for the gateway pods | +| annotations | object | `{}` | Extra annotations for the Deployment | | autoscaling.behavior | object | `{}` | `spec.behavior` for the HPA. Empty uses the Kubernetes defaults (immediate scale-up, 5-minute scale-down stabilization). A gateway that carries long streaming responses usually wants a gentler scale-down, e.g. `scaleDown: {policies: [{type: Pods, value: 1, periodSeconds: 60}]}` | | autoscaling.enabled | bool | `false` | Create a HorizontalPodAutoscaler for the gateway Deployment | | autoscaling.extraMetrics | list | `[]` | Extra `spec.metrics` entries appended verbatim — Pods / Object / External metrics such as a Prometheus adapter series | diff --git a/charts/aisix/templates/deployment.yaml b/charts/aisix/templates/deployment.yaml index cf40fd1..003e07a 100644 --- a/charts/aisix/templates/deployment.yaml +++ b/charts/aisix/templates/deployment.yaml @@ -2,6 +2,10 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "aisix.fullname" . }} + {{- with .Values.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} labels: {{- include "aisix.labels" . | nindent 4 }} {{- include "aisix.selectorLabels" . | nindent 4 }} diff --git a/charts/aisix/values.yaml b/charts/aisix/values.yaml index 72f21de..9dcb258 100644 --- a/charts/aisix/values.yaml +++ b/charts/aisix/values.yaml @@ -588,6 +588,8 @@ extraVolumes: [] # -- Extra volume mounts for the gateway container extraVolumeMounts: [] +# -- Extra annotations for the Deployment +annotations: {} # -- Annotations for the gateway pods podAnnotations: {} # -- Labels for the gateway pods