Skip to content

Instantly share code, notes, and snippets.

@piotrpersona
Created October 14, 2019 10:55
Show Gist options
  • Save piotrpersona/bb3d68f37ccb6ac281e3f7a7959faec2 to your computer and use it in GitHub Desktop.
Save piotrpersona/bb3d68f37ccb6ac281e3f7a7959faec2 to your computer and use it in GitHub Desktop.
Kubernetes helm deployment with conifg checksum
spec:
template:
metadata:
labels:
app.kubernetes.io/name: {{ .Release.Name }}
annotations:
configChecksum: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment