Skip to content

Commit 8a5f322

Browse files
committed
Fix kubelet-config-name
1 parent d725c81 commit 8a5f322

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-reconfigure.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ The configuration is located under the `data.kubelet` key.
131131
To reflect the change on kubeadm nodes you must do the following:
132132
- Log in to a kubeadm node
133133
- Run `kubeadm upgrade node phase kubelet-config` to download the latest `kubelet-config`
134-
ConfigMap contents into the local file `/var/lib/kubelet/config.conf`
134+
ConfigMap contents into the local file `/var/lib/kubelet/config.yaml`
135135
- Edit the file `/var/lib/kubelet/kubeadm-flags.env` to apply additional configuration with
136136
flags
137137
- Restart the kubelet service with `systemctl restart kubelet`
@@ -142,10 +142,10 @@ Do these changes one node at a time to allow workloads to be rescheduled properl
142142

143143
{{< note >}}
144144
During `kubeadm upgrade`, kubeadm downloads the `KubeletConfiguration` from the
145-
`kubelet-config` ConfigMap and overwrite the contents of `/var/lib/kubelet/config.conf`.
145+
`kubelet-config` ConfigMap and overwrite the contents of `/var/lib/kubelet/config.yaml`.
146146
This means that node local configuration must be applied either by flags in
147147
`/var/lib/kubelet/kubeadm-flags.env` or by manually updating the contents of
148-
`/var/lib/kubelet/config.conf` after `kubeadm upgrade`, and then restarting the kubelet.
148+
`/var/lib/kubelet/config.yaml` after `kubeadm upgrade`, and then restarting the kubelet.
149149
{{< /note >}}
150150

151151
### Applying kube-proxy configuration changes
@@ -264,14 +264,14 @@ the set of node specific patches must be updated accordingly.
264264

265265
#### Persisting kubelet reconfiguration
266266

267-
Any changes to the `KubeletConfiguration` stored in `/var/lib/kubelet/config.conf` will be overwritten on
267+
Any changes to the `KubeletConfiguration` stored in `/var/lib/kubelet/config.yaml` will be overwritten on
268268
`kubeadm upgrade` by downloading the contents of the cluster wide `kubelet-config` ConfigMap.
269-
To persist kubelet node specific configuration either the file `/var/lib/kubelet/config.conf`
269+
To persist kubelet node specific configuration either the file `/var/lib/kubelet/config.yaml`
270270
has to be updated manually post-upgrade or the file `/var/lib/kubelet/kubeadm-flags.env` can include flags.
271271
The kubelet flags override the associated `KubeletConfiguration` options, but note that
272272
some of the flags are deprecated.
273273

274-
A kubelet restart will be required after changing `/var/lib/kubelet/config.conf` or
274+
A kubelet restart will be required after changing `/var/lib/kubelet/config.yaml` or
275275
`/var/lib/kubelet/kubeadm-flags.env`.
276276

277277
## {{% heading "whatsnext" %}}

0 commit comments

Comments
 (0)