Pod Annotations for Helm Chart
closed
Dominik
The Helm Chart should support Pod Annotations. Should be pretty easy to add. Its like adding 2 lines in the deployment template and one new key to the values file.
Something like this:
# dev/helm/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "wiki.fullname" . }}
labels:
{{- include "wiki.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
selector:
matchLabels:
{{- include "wiki.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "wiki.selectorLabels" . | nindent 8 }}
annotations: # added
{{- toYaml .Values.podAnnotations | nindent 8 }} # added
...
# dev/helm/values.yaml
...
podSecurityContext: {}
# fsGroup: 2000
podAnnotations: {} # added
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
...
Nicolas Giard
closed
This is not the place to submit Helm improvements. Submit a PR or use GitHub Discussions.