From f1d5525f8513a91b3d0c1d6f732be91bf5b42c41 Mon Sep 17 00:00:00 2001 From: Ivan Tsekov Date: Wed, 4 Dec 2024 11:27:17 +0200 Subject: [PATCH] Update controller-manager-leader-migration.md The example of `LeaderMigrationConfiguration` is missing the `resourceLock`, which is required according to the documentation. [1] [1] https://kubernetes.io/docs/reference/config-api/kube-controller-manager-config.v1alpha1/#controllermanager-config-k8s-io-v1alpha1-LeaderMigrationConfiguration --- .../administer-cluster/controller-manager-leader-migration.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/docs/tasks/administer-cluster/controller-manager-leader-migration.md b/content/en/docs/tasks/administer-cluster/controller-manager-leader-migration.md index b142a6fb2d76d..4e0c1b0456bf6 100644 --- a/content/en/docs/tasks/administer-cluster/controller-manager-leader-migration.md +++ b/content/en/docs/tasks/administer-cluster/controller-manager-leader-migration.md @@ -105,6 +105,7 @@ Leader Migration can be enabled without a configuration. Please see kind: LeaderMigrationConfiguration apiVersion: controllermanager.config.k8s.io/v1 leaderName: cloud-provider-extraction-migration +resourceLock: leases controllerLeaders: - name: route component: kube-controller-manager @@ -123,6 +124,7 @@ between both parties of the migration. kind: LeaderMigrationConfiguration apiVersion: controllermanager.config.k8s.io/v1 leaderName: cloud-provider-extraction-migration +resourceLock: leases controllerLeaders: - name: route component: * @@ -156,6 +158,7 @@ which has the same effect. kind: LeaderMigrationConfiguration apiVersion: controllermanager.config.k8s.io/v1 leaderName: cloud-provider-extraction-migration +resourceLock: leases controllerLeaders: - name: route component: cloud-controller-manager @@ -235,6 +238,7 @@ controllers. kind: LeaderMigrationConfiguration apiVersion: controllermanager.config.k8s.io/v1 leaderName: cloud-provider-extraction-migration +resourceLock: leases controllerLeaders: - name: route component: *