0Pricing
Helm Academy · Lesson

Hook Deletion Policies

Cleaning up hook resources after they succeed.

Hooks Linger

By default a hook resource stays in the cluster after it runs. Without cleanup, old migration Jobs and pods pile up release after release.

The Delete Policy

You control cleanup with the helm.sh/hook-delete-policy annotation. It tells Helm exactly when to remove a hook resource it created.

annotations:
  "helm.sh/hook-delete-policy": hook-succeeded

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