diff --git a/helm/README.md b/helm/README.md index a27b70470e9..f5075a7f3e6 100644 --- a/helm/README.md +++ b/helm/README.md @@ -300,6 +300,7 @@ pre-existing Service name does not automatically transfer its ownership to Helm. | `app.extraEnv` | Additional env vars | `[]` | | `app.extraVolumes` | Additional Pod volumes (rendered verbatim into `spec.template.spec.volumes`) | `[]` | | `app.extraVolumeMounts` | Additional volume mounts for the app container (names must match `extraVolumes`) | `[]` | +| `app.podAnnotations` | Extra annotations for the app Pod template metadata (not the Deployment metadata); rendered verbatim into `spec.template.metadata.annotations` | `{}` | ### Data Files Storage diff --git a/helm/templates/app.yaml b/helm/templates/app.yaml index 0b50b5cca84..0ab0a5f269a 100644 --- a/helm/templates/app.yaml +++ b/helm/templates/app.yaml @@ -37,6 +37,10 @@ spec: metadata: labels: {{- include "weknora.componentSelectorLabels" (dict "component" "app" "context" .) | nindent 8 }} + {{- with .Values.app.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- include "weknora.imagePullSecrets" . | nindent 6 }} serviceAccountName: {{ include "weknora.serviceAccountName" . }} diff --git a/helm/values.yaml b/helm/values.yaml index e8ff1ff8e09..1846320aaba 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -172,6 +172,12 @@ app: # mountPath: /etc/my-config # readOnly: true + # -- Extra annotations for the app Pod template metadata (not the Deployment + # metadata). Rendered verbatim into spec.template.metadata.annotations. Use + # for platform-level sidecar injection or metrics auto-discovery. + podAnnotations: {} + # example.com/sidecar-inject: 'true' + # ----------------------------------------------------------------------------- # Frontend (Web UI) # -----------------------------------------------------------------------------