TIL how to auto roll deployments With Helm
2025-02-19 • 1 min

To automatically roll a Kubernetes deployment with Helm, use the sha256sum function with the checksum/config annotation:

kind: Deployment
spec:
  template:
    metadata:
      annotations:
        checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
[...]

# References

Edited: 2025-02-19