What Hooks Are and When They Fire
pre-install, post-upgrade, and the full event set.
Why Hooks Exist
Sometimes you need work done at a precise moment in a release, like seeding a database. A Helm hook runs a resource at a chosen lifecycle event.
A Hook Is Just Annotated
A hook is an ordinary Kubernetes manifest with one extra annotation. The helm.sh/hook annotation tells Helm to treat it specially instead of as normal release content.
metadata:
annotations:
"helm.sh/hook": pre-installAll lessons in this course
- What Hooks Are and When They Fire
- A Database Migration pre-upgrade Job
- Hook Weights and Ordering
- Hook Deletion Policies