Reference Documentation

Edit This Page

Print the default values for a kubeadm configuration object.


This command prints the default MasterConfiguration object that is used for ‘kubeadm init’ and ‘kubeadm upgrade’, and the default NodeConfiguration object that is used for ‘kubeadm join’.

Note that sensitive values like the Bootstrap Token fields are replaced with silly values like {“abcdef.0123456789abcdef” “” “nil” [] []} in order to pass validation but not perform the real computation for creating a token.

kubeadm config print-default [flags]


--api-objects stringSlice
A comma-separated list for API objects to print the default values for. Available values: [MasterConfiguration NodeConfiguration]. This flag unset means 'print all known objects'
-h, --help
help for print-default

Options inherited from parent commands

--kubeconfig string     Default: "/etc/kubernetes/admin.conf"
The KubeConfig file to use when talking to the cluster.