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
Copy file name to clipboardExpand all lines: content/en/docs/reference/setup-tools/kubeadm/implementation-details.md
-46Lines changed: 0 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -298,26 +298,6 @@ Please note that:
298
298
2. in case of kubeadm is executed in the `--dry-run` mode, the etcd static Pod manifest is written in a temporary folder
299
299
3. Static Pod manifest generation for local etcd can be invoked individually with the [`kubeadm init phase etcd local`](/docs/reference/setup-tools/kubeadm/kubeadm-init-phase/#cmd-phase-etcd) command
300
300
301
-
### Optional Dynamic Kubelet Configuration
302
-
303
-
To use this functionality call `kubeadm alpha kubelet config enable-dynamic`. It writes the kubelet init configuration
304
-
into `/var/lib/kubelet/config/init/kubelet` file.
305
-
306
-
The init configuration is used for starting the kubelet on this specific node, providing an alternative for the kubelet drop-in file;
307
-
such configuration will be replaced by the kubelet base configuration as described in following steps.
308
-
See [set kubelet parameters via a config file](/docs/tasks/administer-cluster/kubelet-config-file) for additional information.
309
-
310
-
Please note that:
311
-
312
-
1. To make dynamic kubelet configuration work, flag `--dynamic-config-dir=/var/lib/kubelet/config/dynamic` should be specified
313
-
in `/etc/systemd/system/kubelet.service.d/10-kubeadm.conf`
314
-
1. The kubelet configuration can be changed by passing a `KubeletConfiguration` object to `kubeadm init` or `kubeadm join` by using
315
-
a configuration file `--config some-file.yaml`. The `KubeletConfiguration` object can be separated from other objects such
316
-
as `InitConfiguration` using the `---` separator. For more details have a look at the `kubeadm config print-default` command.
317
-
318
-
For more details about the `KubeletConfiguration` struct, take a look at the
If kubeadm is invoked with `--feature-gates=DynamicKubeletConfig`:
335
-
336
-
1. Write the kubelet base configuration into the `kubelet-base-config-v1.9` ConfigMap in the `kube-system` namespace
337
-
2. Creates RBAC rules for granting read access to that ConfigMap to all bootstrap tokens and all kubelet instances
338
-
(that is `system:bootstrappers:kubeadm:default-node-token` and `system:nodes` groups)
339
-
3. Enable the dynamic kubelet configuration feature for the initial control-plane node by pointing `Node.spec.configSource` to the newly-created ConfigMap
340
-
341
310
### Save the kubeadm ClusterConfiguration in a ConfigMap for later reference
342
311
343
312
kubeadm saves the configuration passed to `kubeadm init` in a ConfigMap named `kubeadm-config` under `kube-system` namespace.
@@ -520,18 +489,3 @@ Please note that:
520
489
- The temporary authentication resolve to a user member of `system:bootstrappers:kubeadm:default-node-token` group which was granted
521
490
access to CSR api during the `kubeadm init` process
522
491
- The automatic CSR approval is managed by the csrapprover controller, according with configuration done the `kubeadm init` process
If kubeadm is invoked with `--feature-gates=DynamicKubeletConfig`:
529
-
530
-
1. Read the kubelet base configuration from the `kubelet-base-config-v1.x` ConfigMap in the `kube-system` namespace using the
531
-
Bootstrap Token credentials, and write it to disk as kubelet init configuration file `/var/lib/kubelet/config/init/kubelet`
532
-
2. As soon as kubelet starts with the Node's own credential (`/etc/kubernetes/kubelet.conf`), update current node configuration
533
-
specifying that the source for the node/kubelet configuration is the above ConfigMap.
534
-
535
-
Please note that:
536
-
537
-
1. To make dynamic kubelet configuration work, flag `--dynamic-config-dir=/var/lib/kubelet/config/dynamic` should be specified in `/etc/systemd/system/kubelet.service.d/10-kubeadm.conf`
0 commit comments