Files
Lubomir I. Ivanov 586b359b05 kubeadm-config.md: update the page to reflect current state
We have seen a number of questions around the usage of "config print".
Clarify the usage of this command. Add a note that the output should
not be taken literally.

Link to the "customizing components" page instead of the "kubelet
integration" page. The former already links to the later.

Remove note about kube-dns which hasn't been supported for a while.
2021-10-27 18:52:53 +03:00

2.4 KiB

reviewers, title, content_type, weight
reviewers title content_type weight
luxas
jbeda
kubeadm config concept 50

During kubeadm init, kubeadm uploads the ClusterConfiguration object to your cluster in a ConfigMap called kubeadm-config in the kube-system namespace. This configuration is then read during kubeadm join, kubeadm reset and kubeadm upgrade.

You can use kubeadm config print to print the default static configuration that kubeadm uses for kubeadm init and kubeadm join.

{{< note >}} The output of the command is meant to serve as an example. You must manually edit the output of this command to adapt to your setup. Remove the fields that you are not certain about and kubeadm will try to default them on runtime by examining the host. {{< /note >}}

For more information on init and join navigate to Using kubeadm init with a configuration file or Using kubeadm join with a configuration file.

For more information on using the kubeadm configuration API navigate to Customizing components with the kubeadm API.

You can use kubeadm config migrate to convert your old configuration files that contain a deprecated API version to a newer, supported API version.

kubeadm config images list and kubeadm config images pull can be used to list and pull the images that kubeadm requires.

kubeadm config print

{{< include "generated/kubeadm_config_print.md" >}}

kubeadm config print init-defaults

{{< include "generated/kubeadm_config_print_init-defaults.md" >}}

kubeadm config print join-defaults

{{< include "generated/kubeadm_config_print_join-defaults.md" >}}

kubeadm config migrate

{{< include "generated/kubeadm_config_migrate.md" >}}

kubeadm config images list

{{< include "generated/kubeadm_config_images_list.md" >}}

kubeadm config images pull

{{< include "generated/kubeadm_config_images_pull.md" >}}

{{% heading "whatsnext" %}}