0PricingLogin
Helm Academy · Lesson

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-install

All lessons in this course

  1. What Hooks Are and When They Fire
  2. A Database Migration pre-upgrade Job
  3. Hook Weights and Ordering
  4. Hook Deletion Policies
← Back to Helm Academy