You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the application is deployed as a Pod in the cluster, please refer to the [next section](#accessing-the-api-from-a-pod).
303
+
If the application is deployed as a Pod in the cluster, see [Accessing the API from within a Pod](/docs/tasks/access-application-cluster/access-cluster/#accessing-the-api-from-a-pod).
Leader Migration is an alpha feature that is disabled by default and it requires `--enable-leader-migration` to be set on controller managers.
47
-
It can be enabled by setting the feature gate `ControllerManagerLeaderMigration` plus `--enable-leader-migration` on `kube-controller-manager` or `cloud-controller-manager`.
46
+
Leader Migration can be enabled by setting `--enable-leader-migration` on `kube-controller-manager` or `cloud-controller-manager`.
48
47
Leader Migration only applies during the upgrade and can be safely disabled or left enabled after the upgrade is complete.
49
48
50
49
This guide walks you through the manual process of upgrading the control plane from `kube-controller-manager` with
51
50
built-in cloud provider to running both `kube-controller-manager` and `cloud-controller-manager`.
52
51
If you use a tool to administrator the cluster, please refer to the documentation of the tool and the cloud provider for more details.
@@ -64,14 +61,14 @@ If you use a tool to administrator the cluster, please refer to the documentatio
64
61
65
62
<!--
66
63
It is assumed that the control plane is running Kubernetes version N and to be upgraded to version N + 1.
67
-
Although it is possible to migrate within the same version, ideally the migration should be performed as part of a upgrade so that changes of configuration can be aligned to releases.
64
+
Although it is possible to migrate within the same version, ideally the migration should be performed as part of a upgrade so that changes of configuration can be aligned to each release.
68
65
The exact versions of N and N + 1 depend on each cloud provider. For example, if a cloud provider builds a `cloud-controller-manager` to work with Kubernetes 1.22, then N can be 1.21 and N + 1 can be 1.22.
69
66
70
67
The control plane nodes should run `kube-controller-manager` with Leader Election enabled through `--leader-elect=true`.
71
68
As of version N, an in-tree cloud privider must be set with `--cloud-provider` flag and `cloud-controller-manager` should not yet be deployed.
本指南假定每个控制平面节点的 kubelet 以静态 pod 的形式启动 `kube-controller-manager`
98
97
和 `cloud-controller-manager`,静态 pod 的定义在清单文件中。
@@ -137,19 +136,21 @@ Do the same to the `system::leader-locking-cloud-controller-manager` role.
137
136
<!--
138
137
### Initial Leader Migration configuration
139
138
140
-
Leader Migration requires a configuration file representing the state of controller-to-manager assignment.
141
-
At this moment, with in-tree cloud provider, `kube-controller-manager` runs `route`, `service`, and `cloud-node-lifecycle`.
142
-
The following example configuration shows the assignment.
139
+
Leader Migration optionally takes a configuration file representing the state of controller-to-manager assignment. At this moment, with in-tree cloud provider, `kube-controller-manager` runs `route`, `service`, and `cloud-node-lifecycle`. The following example configuration shows the assignment.
140
+
141
+
Leader Migration can be enabled without a configuration. Please see [Default Configuration](#default-configuration) for details.
Starting Kubernetes 1.22, Leader Migration provides a default configuration suitable for the default controller-to-manager assignment.
292
+
The default configuration can be enabled by setting `--enable-leader-migration` but without `--leader-migration-config=`.
293
+
294
+
For `kube-controller-manager` and `cloud-controller-manager`, if there are no flags that enable any in-tree cloud provider or change ownership of controllers, the default configuration can be used to avoid manual creation of the configuration file.
0 commit comments