• Using Finalizers: Finalizers are a mechanism to execute any custom logic related to a resource before it gets deleted from Kubernetes cluster.

  • Webhooks: Webhooks are HTTP callbacks, there are 3 types of webhooks in k8s: 1) admission webhook 2) CRD conversion webhook 3) authorization webhook

    • Admission Webhook: Admission webhooks are HTTP callbacks for mutating or validating resources before the API server admit them.