Finalizerとは何か?
Finalizerは、Kubernetesオブジェクトに追加されるキーで、controllerが先にクリーンアップを実行できるよう、その削除を一時停止します。削除が要求されると、オブジェクトは削除対象としてマークされますが、すべてのfinalizerが削除されるまで保持されます。所有するcontrollerは外部リソースの解放などのタスクを実行し、その後自身のfinalizerを取り除いて削除を完了させます。
なぜ重要か
一部のリソースは、クラウドのload balancerなど、オブジェクトが消える前に破棄しなければならない外部の状態を保持しています。Finalizerは、孤立したインフラを残すのではなく、クリーンアップが確実に行われることを保証します。
関連ガイド
What Is Operator Reconciliation?Operator reconciliation is the loop in which a Kubernetes operator compares the desired state of a custom res…
What Is a Reconciliation Loop?A reconciliation loop is the continuous control process that observes actual state, compares it to desired st…
What Is a Custom Resource Definition?A custom resource definition extends the Kubernetes API with a new object type, letting operators manage appl…