diff --git a/README.md b/README.md index b3d5249..3743b15 100644 --- a/README.md +++ b/README.md @@ -1054,6 +1054,7 @@ It also uses the following configuration from the `$pod`: | Value | Description | | ----- | ----------- | | `$pod.imagePullSecrets` | Names of secrets containing private registry credentials | +| `$pod.podAnnotations` | Pod annotations | | `$pod.podSecurityContext` | Security options | | `$pod.nodeSelector ` | Node labels for pod assignment | | `$pod.affinity ` | Expressions for affinity | diff --git a/templates/_pod.tpl b/templates/_pod.tpl index 72d4c7c..e1015b6 100644 --- a/templates/_pod.tpl +++ b/templates/_pod.tpl @@ -5,6 +5,10 @@ {{- $pod := index . 1 -}} {{- $serviceAccount := index . 2 -}} metadata: + {{- with $pod.podAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} labels: {{- include "common.selectorLabels" $top | nindent 4 }} spec: