Skip to content

Commit

Permalink
Update controller-manager-leader-migration.md
Browse files Browse the repository at this point in the history
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
  • Loading branch information
igtsekov authored Dec 4, 2024
1 parent a3805cc commit f1d5525
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: *
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -235,6 +238,7 @@ controllers.
kind: LeaderMigrationConfiguration
apiVersion: controllermanager.config.k8s.io/v1
leaderName: cloud-provider-extraction-migration
resourceLock: leases
controllerLeaders:
- name: route
component: *
Expand Down

0 comments on commit f1d5525

Please sign in to comment.