- 1:
- 2:
- 3:
- 4:
- 5:
- 6:
- 7:
- 8:
- 9:
- 10:
- 11:
- 12:
- 13:
- 14:
- 15:
- 16:
- 17:
- 18:
- 19:
- 20:
- 21:
- 22:
- 23:
- 24:
- 25:
- 26:
- 27:
- 28:
- 29:
- 30:
- 31:
- 32:
- 33:
- 34:
- 35:
- 36:
- 37:
- 38:
- 39:
- 40:
- 41:
- 42:
- 43:
- 44:
- 45:
- 46:
Run this command in order to set up the Kubernetes control plane
Synopsis
Run this command in order to set up the Kubernetes control plane
The "init" command executes the following phases:
preflight Run pre-flight checks
certs Certificate generation
/ca Generate the self-signed Kubernetes CA to provision identities for other Kubernetes components
/apiserver Generate the certificate for serving the Kubernetes API
/apiserver-kubelet-client Generate the certificate for the API server to connect to kubelet
/front-proxy-ca Generate the self-signed CA to provision identities for front proxy
/front-proxy-client Generate the certificate for the front proxy client
/etcd-ca Generate the self-signed CA to provision identities for etcd
/etcd-server Generate the certificate for serving etcd
/etcd-peer Generate the certificate for etcd nodes to communicate with each other
/etcd-healthcheck-client Generate the certificate for liveness probes to healthcheck etcd
/apiserver-etcd-client Generate the certificate the apiserver uses to access etcd
/sa Generate a private key for signing service account tokens along with its public key
kubeconfig Generate all kubeconfig files necessary to establish the control plane and the admin kubeconfig file
/admin Generate a kubeconfig file for the admin to use and for kubeadm itself
/super-admin Generate a kubeconfig file for the super-admin
/kubelet Generate a kubeconfig file for the kubelet to use *only* for cluster bootstrapping purposes
/controller-manager Generate a kubeconfig file for the controller manager to use
/scheduler Generate a kubeconfig file for the scheduler to use
etcd Generate static Pod manifest file for local etcd
/local Generate the static Pod manifest file for a local, single-node local etcd instance
control-plane Generate all static Pod manifest files necessary to establish the control plane
/apiserver Generates the kube-apiserver static Pod manifest
/controller-manager Generates the kube-controller-manager static Pod manifest
/scheduler Generates the kube-scheduler static Pod manifest
kubelet-start Write kubelet settings and (re)start the kubelet
upload-config Upload the kubeadm and kubelet configuration to a ConfigMap
/kubeadm Upload the kubeadm ClusterConfiguration to a ConfigMap
/kubelet Upload the kubelet component config to a ConfigMap
upload-certs Upload certificates to kubeadm-certs
mark-control-plane Mark a node as a control-plane
bootstrap-token Generates bootstrap tokens used to join a node to a cluster
kubelet-finalize Updates settings relevant to the kubelet after TLS bootstrap
/enable-client-cert-rotation Enable kubelet client certificate rotation
/experimental-cert-rotation Enable kubelet client certificate rotation (DEPRECATED: use 'enable-client-cert-rotation' instead)
addon Install required addons for passing conformance tests
/coredns Install the CoreDNS addon to a Kubernetes cluster
/kube-proxy Install the kube-proxy addon to a Kubernetes cluster
show-join-command Show the join command for control-plane and worker node
kubeadm init [flags]
Options
--apiserver-advertise-address string |
| The IP address the API Server will advertise it's listening on. If not set the default network interface will be used. |
--apiserver-bind-port int32 Default: 6443 |
| Port for the API Server to bind to. |
--apiserver-cert-extra-sans strings |
| Optional extra Subject Alternative Names (SANs) to use for the API Server serving certificate. Can be both IP addresses and DNS names. |
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--certificate-key string |
| Key used to encrypt the control-plane certificates in the kubeadm-certs Secret. The certificate key is a hex encoded string that is an AES key of size 32 bytes. |
--config string |
| Path to a kubeadm configuration file. |
--control-plane-endpoint string |
| Specify a stable IP address or DNS name for the control plane. |
--cri-socket string |
| Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket. |
--dry-run |
| Don't apply any changes; just output what would be done. |
--feature-gates string |
| A set of key=value pairs that describe feature gates for various features. Options are: ControlPlaneKubeletLocalMode=true|false (ALPHA - default=false) EtcdLearnerMode=true|false (BETA - default=true) PublicKeysECDSA=true|false (DEPRECATED - default=false) RootlessControlPlane=true|false (ALPHA - default=false) WaitForAllControlPlaneComponents=true|false (ALPHA - default=false) |
-h, --help |
| help for init |
--ignore-preflight-errors strings |
| A list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks. |
--image-repository string Default: "registry.k8s.io" |
| Choose a container registry to pull control plane images from |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
--node-name string |
| Specify the node name. |
--patches string |
| Path to a directory that contains files named "target[suffix][+patchtype].extension". For example, "kube-apiserver0+merge.yaml" or just "etcd.json". "target" can be one of "kube-apiserver", "kube-controller-manager", "kube-scheduler", "etcd", "kubeletconfiguration", "corednsdeployment". "patchtype" can be one of "strategic", "merge" or "json" and they match the patch formats supported by kubectl. The default "patchtype" is "strategic". "extension" must be either "json" or "yaml". "suffix" is an optional string that can be used to determine which patches are applied first alpha-numerically. |
--pod-network-cidr string |
| Specify range of IP addresses for the pod network. If set, the control plane will automatically allocate CIDRs for every node. |
--service-cidr string Default: "10.96.0.0/12" |
| Use alternative range of IP address for service VIPs. |
--service-dns-domain string Default: "cluster.local" |
| Use alternative domain for services, e.g. "myorg.internal". |
--skip-certificate-key-print |
| Don't print the key used to encrypt the control-plane certificates. |
--skip-phases strings |
| List of phases to be skipped |
--skip-token-print |
| Skip printing of the default bootstrap token generated by 'kubeadm init'. |
--token string |
| The token to use for establishing bidirectional trust between nodes and control-plane nodes. The format is [a-z0-9]{6}.[a-z0-9]{16} - e.g. abcdef.0123456789abcdef |
--token-ttl duration Default: 24h0m0s |
| The duration before the token is automatically deleted (e.g. 1s, 2m, 3h). If set to '0', the token will never expire |
--upload-certs |
| Upload control-plane certificates to the kubeadm-certs Secret. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
1 -
Use this command to invoke single phase of the init workflow
Synopsis
Use this command to invoke single phase of the init workflow
Options
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
2 -
Install required addons for passing conformance tests
Synopsis
This command is not meant to be run on its own. See list of available subcommands.
kubeadm init phase addon [flags]
Options
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
3 -
Install all the addons
Synopsis
Install all the addons
kubeadm init phase addon all [flags]
Options
--apiserver-advertise-address string |
| The IP address the API Server will advertise it's listening on. If not set the default network interface will be used. |
--apiserver-bind-port int32 Default: 6443 |
| Port for the API Server to bind to. |
--config string |
| Path to a kubeadm configuration file. |
--control-plane-endpoint string |
| Specify a stable IP address or DNS name for the control plane. |
--dry-run |
| Don't apply any changes; just output what would be done. |
--feature-gates string |
| A set of key=value pairs that describe feature gates for various features. Options are: ControlPlaneKubeletLocalMode=true|false (ALPHA - default=false) EtcdLearnerMode=true|false (BETA - default=true) PublicKeysECDSA=true|false (DEPRECATED - default=false) RootlessControlPlane=true|false (ALPHA - default=false) WaitForAllControlPlaneComponents=true|false (ALPHA - default=false) |
-h, --help |
| help for all |
--image-repository string Default: "registry.k8s.io" |
| Choose a container registry to pull control plane images from |
--kubeconfig string Default: "/etc/kubernetes/admin.conf" |
| The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file. |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
--pod-network-cidr string |
| Specify range of IP addresses for the pod network. If set, the control plane will automatically allocate CIDRs for every node. |
--service-cidr string Default: "10.96.0.0/12" |
| Use alternative range of IP address for service VIPs. |
--service-dns-domain string Default: "cluster.local" |
| Use alternative domain for services, e.g. "myorg.internal". |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
4 -
Install the CoreDNS addon to a Kubernetes cluster
Synopsis
Install the CoreDNS addon components via the API server. Please note that although the DNS server is deployed, it will not be scheduled until CNI is installed.
kubeadm init phase addon coredns [flags]
Options
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
--feature-gates string |
| A set of key=value pairs that describe feature gates for various features. Options are: ControlPlaneKubeletLocalMode=true|false (ALPHA - default=false) EtcdLearnerMode=true|false (BETA - default=true) PublicKeysECDSA=true|false (DEPRECATED - default=false) RootlessControlPlane=true|false (ALPHA - default=false) WaitForAllControlPlaneComponents=true|false (ALPHA - default=false) |
-h, --help |
| help for coredns |
--image-repository string Default: "registry.k8s.io" |
| Choose a container registry to pull control plane images from |
--kubeconfig string Default: "/etc/kubernetes/admin.conf" |
| The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file. |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
--print-manifest |
| Print the addon manifests to STDOUT instead of installing them |
--service-cidr string Default: "10.96.0.0/12" |
| Use alternative range of IP address for service VIPs. |
--service-dns-domain string Default: "cluster.local" |
| Use alternative domain for services, e.g. "myorg.internal". |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
5 -
Install the kube-proxy addon to a Kubernetes cluster
Synopsis
Install the kube-proxy addon components via the API server.
kubeadm init phase addon kube-proxy [flags]
Options
--apiserver-advertise-address string |
| The IP address the API Server will advertise it's listening on. If not set the default network interface will be used. |
--apiserver-bind-port int32 Default: 6443 |
| Port for the API Server to bind to. |
--config string |
| Path to a kubeadm configuration file. |
--control-plane-endpoint string |
| Specify a stable IP address or DNS name for the control plane. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for kube-proxy |
--image-repository string Default: "registry.k8s.io" |
| Choose a container registry to pull control plane images from |
--kubeconfig string Default: "/etc/kubernetes/admin.conf" |
| The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file. |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
--pod-network-cidr string |
| Specify range of IP addresses for the pod network. If set, the control plane will automatically allocate CIDRs for every node. |
--print-manifest |
| Print the addon manifests to STDOUT instead of installing them |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
6 -
Generates bootstrap tokens used to join a node to a cluster
Synopsis
Bootstrap tokens are used for establishing bidirectional trust between a node joining the cluster and a control-plane node.
This command makes all the configurations required to make bootstrap tokens works and then creates an initial token.
kubeadm init phase bootstrap-token [flags]
Examples
# Make all the bootstrap token configurations and create an initial token, functionally
# equivalent to what generated by kubeadm init.
kubeadm init phase bootstrap-token
Options
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for bootstrap-token |
--kubeconfig string Default: "/etc/kubernetes/admin.conf" |
| The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file. |
--skip-token-print |
| Skip printing of the default bootstrap token generated by 'kubeadm init'. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
7 -
Certificate generation
Synopsis
This command is not meant to be run on its own. See list of available subcommands.
kubeadm init phase certs [flags]
Options
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
8 -
Generate all certificates
Synopsis
Generate all certificates
kubeadm init phase certs all [flags]
Options
--apiserver-advertise-address string |
| The IP address the API Server will advertise it's listening on. If not set the default network interface will be used. |
--apiserver-cert-extra-sans strings |
| Optional extra Subject Alternative Names (SANs) to use for the API Server serving certificate. Can be both IP addresses and DNS names. |
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--control-plane-endpoint string |
| Specify a stable IP address or DNS name for the control plane. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for all |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
--service-cidr string Default: "10.96.0.0/12" |
| Use alternative range of IP address for service VIPs. |
--service-dns-domain string Default: "cluster.local" |
| Use alternative domain for services, e.g. "myorg.internal". |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
9 -
Generate the certificate the apiserver uses to access etcd
Synopsis
Generate the certificate the apiserver uses to access etcd, and save them into apiserver-etcd-client.crt and apiserver-etcd-client.key files.
If both files already exist, kubeadm skips the generation step and existing files will be used.
kubeadm init phase certs apiserver-etcd-client [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for apiserver-etcd-client |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
10 -
Generate the certificate for the API server to connect to kubelet
Synopsis
Generate the certificate for the API server to connect to kubelet, and save them into apiserver-kubelet-client.crt and apiserver-kubelet-client.key files.
If both files already exist, kubeadm skips the generation step and existing files will be used.
kubeadm init phase certs apiserver-kubelet-client [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for apiserver-kubelet-client |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
11 -
Generate the certificate for serving the Kubernetes API
Synopsis
Generate the certificate for serving the Kubernetes API, and save them into apiserver.crt and apiserver.key files.
If both files already exist, kubeadm skips the generation step and existing files will be used.
kubeadm init phase certs apiserver [flags]
Options
--apiserver-advertise-address string |
| The IP address the API Server will advertise it's listening on. If not set the default network interface will be used. |
--apiserver-cert-extra-sans strings |
| Optional extra Subject Alternative Names (SANs) to use for the API Server serving certificate. Can be both IP addresses and DNS names. |
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--control-plane-endpoint string |
| Specify a stable IP address or DNS name for the control plane. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for apiserver |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
--service-cidr string Default: "10.96.0.0/12" |
| Use alternative range of IP address for service VIPs. |
--service-dns-domain string Default: "cluster.local" |
| Use alternative domain for services, e.g. "myorg.internal". |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
12 -
Generate the self-signed Kubernetes CA to provision identities for other Kubernetes components
Synopsis
Generate the self-signed Kubernetes CA to provision identities for other Kubernetes components, and save them into ca.crt and ca.key files.
If both files already exist, kubeadm skips the generation step and existing files will be used.
kubeadm init phase certs ca [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for ca |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
13 -
Generate the self-signed CA to provision identities for etcd
Synopsis
Generate the self-signed CA to provision identities for etcd, and save them into etcd/ca.crt and etcd/ca.key files.
If both files already exist, kubeadm skips the generation step and existing files will be used.
kubeadm init phase certs etcd-ca [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for etcd-ca |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
14 -
Generate the certificate for liveness probes to healthcheck etcd
Synopsis
Generate the certificate for liveness probes to healthcheck etcd, and save them into etcd/healthcheck-client.crt and etcd/healthcheck-client.key files.
If both files already exist, kubeadm skips the generation step and existing files will be used.
kubeadm init phase certs etcd-healthcheck-client [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for etcd-healthcheck-client |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
15 -
Generate the certificate for etcd nodes to communicate with each other
Synopsis
Generate the certificate for etcd nodes to communicate with each other, and save them into etcd/peer.crt and etcd/peer.key files.
Default SANs are localhost, 127.0.0.1, 127.0.0.1, ::1
If both files already exist, kubeadm skips the generation step and existing files will be used.
kubeadm init phase certs etcd-peer [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for etcd-peer |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
16 -
Generate the certificate for serving etcd
Synopsis
Generate the certificate for serving etcd, and save them into etcd/server.crt and etcd/server.key files.
Default SANs are localhost, 127.0.0.1, 127.0.0.1, ::1
If both files already exist, kubeadm skips the generation step and existing files will be used.
kubeadm init phase certs etcd-server [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for etcd-server |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
17 -
Generate the self-signed CA to provision identities for front proxy
Synopsis
Generate the self-signed CA to provision identities for front proxy, and save them into front-proxy-ca.crt and front-proxy-ca.key files.
If both files already exist, kubeadm skips the generation step and existing files will be used.
kubeadm init phase certs front-proxy-ca [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for front-proxy-ca |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
18 -
Generate the certificate for the front proxy client
Synopsis
Generate the certificate for the front proxy client, and save them into front-proxy-client.crt and front-proxy-client.key files.
If both files already exist, kubeadm skips the generation step and existing files will be used.
kubeadm init phase certs front-proxy-client [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for front-proxy-client |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
19 -
Generate a private key for signing service account tokens along with its public key
Synopsis
Generate the private key for signing service account tokens along with its public key, and save them into sa.key and sa.pub files.
If both files already exist, kubeadm skips the generation step and existing files will be used.
kubeadm init phase certs sa [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for sa |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
20 -
Generate all static Pod manifest files necessary to establish the control plane
Synopsis
This command is not meant to be run on its own. See list of available subcommands.
kubeadm init phase control-plane [flags]
Options
-h, --help |
| help for control-plane |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
21 -
Generate all static Pod manifest files
Synopsis
Generate all static Pod manifest files
kubeadm init phase control-plane all [flags]
Examples
# Generates all static Pod manifest files for control plane components,
# functionally equivalent to what is generated by kubeadm init.
kubeadm init phase control-plane all
# Generates all static Pod manifest files using options read from a configuration file.
kubeadm init phase control-plane all --config config.yaml
Options
--apiserver-advertise-address string |
| The IP address the API Server will advertise it's listening on. If not set the default network interface will be used. |
--apiserver-bind-port int32 Default: 6443 |
| Port for the API Server to bind to. |
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--control-plane-endpoint string |
| Specify a stable IP address or DNS name for the control plane. |
--dry-run |
| Don't apply any changes; just output what would be done. |
--feature-gates string |
| A set of key=value pairs that describe feature gates for various features. Options are: ControlPlaneKubeletLocalMode=true|false (ALPHA - default=false) EtcdLearnerMode=true|false (BETA - default=true) PublicKeysECDSA=true|false (DEPRECATED - default=false) RootlessControlPlane=true|false (ALPHA - default=false) WaitForAllControlPlaneComponents=true|false (ALPHA - default=false) |
-h, --help |
| help for all |
--image-repository string Default: "registry.k8s.io" |
| Choose a container registry to pull control plane images from |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
--patches string |
| Path to a directory that contains files named "target[suffix][+patchtype].extension". For example, "kube-apiserver0+merge.yaml" or just "etcd.json". "target" can be one of "kube-apiserver", "kube-controller-manager", "kube-scheduler", "etcd", "kubeletconfiguration", "corednsdeployment". "patchtype" can be one of "strategic", "merge" or "json" and they match the patch formats supported by kubectl. The default "patchtype" is "strategic". "extension" must be either "json" or "yaml". "suffix" is an optional string that can be used to determine which patches are applied first alpha-numerically. |
--pod-network-cidr string |
| Specify range of IP addresses for the pod network. If set, the control plane will automatically allocate CIDRs for every node. |
--service-cidr string Default: "10.96.0.0/12" |
| Use alternative range of IP address for service VIPs. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
22 -
Generates the kube-apiserver static Pod manifest
Synopsis
Generates the kube-apiserver static Pod manifest
kubeadm init phase control-plane apiserver [flags]
Options
--apiserver-advertise-address string |
| The IP address the API Server will advertise it's listening on. If not set the default network interface will be used. |
--apiserver-bind-port int32 Default: 6443 |
| Port for the API Server to bind to. |
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--control-plane-endpoint string |
| Specify a stable IP address or DNS name for the control plane. |
--dry-run |
| Don't apply any changes; just output what would be done. |
--feature-gates string |
| A set of key=value pairs that describe feature gates for various features. Options are: ControlPlaneKubeletLocalMode=true|false (ALPHA - default=false) EtcdLearnerMode=true|false (BETA - default=true) PublicKeysECDSA=true|false (DEPRECATED - default=false) RootlessControlPlane=true|false (ALPHA - default=false) WaitForAllControlPlaneComponents=true|false (ALPHA - default=false) |
-h, --help |
| help for apiserver |
--image-repository string Default: "registry.k8s.io" |
| Choose a container registry to pull control plane images from |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
--patches string |
| Path to a directory that contains files named "target[suffix][+patchtype].extension". For example, "kube-apiserver0+merge.yaml" or just "etcd.json". "target" can be one of "kube-apiserver", "kube-controller-manager", "kube-scheduler", "etcd", "kubeletconfiguration", "corednsdeployment". "patchtype" can be one of "strategic", "merge" or "json" and they match the patch formats supported by kubectl. The default "patchtype" is "strategic". "extension" must be either "json" or "yaml". "suffix" is an optional string that can be used to determine which patches are applied first alpha-numerically. |
--service-cidr string Default: "10.96.0.0/12" |
| Use alternative range of IP address for service VIPs. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
23 -
Generates the kube-controller-manager static Pod manifest
Synopsis
Generates the kube-controller-manager static Pod manifest
kubeadm init phase control-plane controller-manager [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for controller-manager |
--image-repository string Default: "registry.k8s.io" |
| Choose a container registry to pull control plane images from |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
--patches string |
| Path to a directory that contains files named "target[suffix][+patchtype].extension". For example, "kube-apiserver0+merge.yaml" or just "etcd.json". "target" can be one of "kube-apiserver", "kube-controller-manager", "kube-scheduler", "etcd", "kubeletconfiguration", "corednsdeployment". "patchtype" can be one of "strategic", "merge" or "json" and they match the patch formats supported by kubectl. The default "patchtype" is "strategic". "extension" must be either "json" or "yaml". "suffix" is an optional string that can be used to determine which patches are applied first alpha-numerically. |
--pod-network-cidr string |
| Specify range of IP addresses for the pod network. If set, the control plane will automatically allocate CIDRs for every node. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
24 -
Generates the kube-scheduler static Pod manifest
Synopsis
Generates the kube-scheduler static Pod manifest
kubeadm init phase control-plane scheduler [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for scheduler |
--image-repository string Default: "registry.k8s.io" |
| Choose a container registry to pull control plane images from |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
--patches string |
| Path to a directory that contains files named "target[suffix][+patchtype].extension". For example, "kube-apiserver0+merge.yaml" or just "etcd.json". "target" can be one of "kube-apiserver", "kube-controller-manager", "kube-scheduler", "etcd", "kubeletconfiguration", "corednsdeployment". "patchtype" can be one of "strategic", "merge" or "json" and they match the patch formats supported by kubectl. The default "patchtype" is "strategic". "extension" must be either "json" or "yaml". "suffix" is an optional string that can be used to determine which patches are applied first alpha-numerically. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
25 -
Generate static Pod manifest file for local etcd
Synopsis
This command is not meant to be run on its own. See list of available subcommands.
kubeadm init phase etcd [flags]
Options
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
26 -
Generate the static Pod manifest file for a local, single-node local etcd instance
Synopsis
Generate the static Pod manifest file for a local, single-node local etcd instance
kubeadm init phase etcd local [flags]
Examples
# Generates the static Pod manifest file for etcd, functionally
# equivalent to what is generated by kubeadm init.
kubeadm init phase etcd local
# Generates the static Pod manifest file for etcd using options
# read from a configuration file.
kubeadm init phase etcd local --config config.yaml
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for local |
--image-repository string Default: "registry.k8s.io" |
| Choose a container registry to pull control plane images from |
--patches string |
| Path to a directory that contains files named "target[suffix][+patchtype].extension". For example, "kube-apiserver0+merge.yaml" or just "etcd.json". "target" can be one of "kube-apiserver", "kube-controller-manager", "kube-scheduler", "etcd", "kubeletconfiguration", "corednsdeployment". "patchtype" can be one of "strategic", "merge" or "json" and they match the patch formats supported by kubectl. The default "patchtype" is "strategic". "extension" must be either "json" or "yaml". "suffix" is an optional string that can be used to determine which patches are applied first alpha-numerically. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
27 -
Generate all kubeconfig files necessary to establish the control plane and the admin kubeconfig file
Synopsis
This command is not meant to be run on its own. See list of available subcommands.
kubeadm init phase kubeconfig [flags]
Options
-h, --help |
| help for kubeconfig |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
28 -
Generate a kubeconfig file for the admin to use and for kubeadm itself
Synopsis
Generate the kubeconfig file for the admin and for kubeadm itself, and save it to admin.conf file.
kubeadm init phase kubeconfig admin [flags]
Options
--apiserver-advertise-address string |
| The IP address the API Server will advertise it's listening on. If not set the default network interface will be used. |
--apiserver-bind-port int32 Default: 6443 |
| Port for the API Server to bind to. |
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--control-plane-endpoint string |
| Specify a stable IP address or DNS name for the control plane. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for admin |
--kubeconfig-dir string Default: "/etc/kubernetes" |
| The path where to save the kubeconfig file. |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
29 -
Generate all kubeconfig files
Synopsis
Generate all kubeconfig files
kubeadm init phase kubeconfig all [flags]
Options
--apiserver-advertise-address string |
| The IP address the API Server will advertise it's listening on. If not set the default network interface will be used. |
--apiserver-bind-port int32 Default: 6443 |
| Port for the API Server to bind to. |
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--control-plane-endpoint string |
| Specify a stable IP address or DNS name for the control plane. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for all |
--kubeconfig-dir string Default: "/etc/kubernetes" |
| The path where to save the kubeconfig file. |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
--node-name string |
| Specify the node name. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
30 -
Generate a kubeconfig file for the controller manager to use
Synopsis
Generate the kubeconfig file for the controller manager to use and save it to controller-manager.conf file
kubeadm init phase kubeconfig controller-manager [flags]
Options
--apiserver-advertise-address string |
| The IP address the API Server will advertise it's listening on. If not set the default network interface will be used. |
--apiserver-bind-port int32 Default: 6443 |
| Port for the API Server to bind to. |
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--control-plane-endpoint string |
| Specify a stable IP address or DNS name for the control plane. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for controller-manager |
--kubeconfig-dir string Default: "/etc/kubernetes" |
| The path where to save the kubeconfig file. |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
31 -
Generate a kubeconfig file for the kubelet to use only for cluster bootstrapping purposes
Synopsis
Generate the kubeconfig file for the kubelet to use and save it to kubelet.conf file.
Please note that this should only be used for cluster bootstrapping purposes. After your control plane is up, you should request all kubelet credentials from the CSR API.
kubeadm init phase kubeconfig kubelet [flags]
Options
--apiserver-advertise-address string |
| The IP address the API Server will advertise it's listening on. If not set the default network interface will be used. |
--apiserver-bind-port int32 Default: 6443 |
| Port for the API Server to bind to. |
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--control-plane-endpoint string |
| Specify a stable IP address or DNS name for the control plane. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for kubelet |
--kubeconfig-dir string Default: "/etc/kubernetes" |
| The path where to save the kubeconfig file. |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
--node-name string |
| Specify the node name. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
32 -
Generate a kubeconfig file for the scheduler to use
Synopsis
Generate the kubeconfig file for the scheduler to use and save it to scheduler.conf file.
kubeadm init phase kubeconfig scheduler [flags]
Options
--apiserver-advertise-address string |
| The IP address the API Server will advertise it's listening on. If not set the default network interface will be used. |
--apiserver-bind-port int32 Default: 6443 |
| Port for the API Server to bind to. |
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--control-plane-endpoint string |
| Specify a stable IP address or DNS name for the control plane. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for scheduler |
--kubeconfig-dir string Default: "/etc/kubernetes" |
| The path where to save the kubeconfig file. |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
33 -
Generate a kubeconfig file for the super-admin
Synopsis
Generate a kubeconfig file for the super-admin, and save it to super-admin.conf file.
kubeadm init phase kubeconfig super-admin [flags]
Options
--apiserver-advertise-address string |
| The IP address the API Server will advertise it's listening on. If not set the default network interface will be used. |
--apiserver-bind-port int32 Default: 6443 |
| Port for the API Server to bind to. |
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--control-plane-endpoint string |
| Specify a stable IP address or DNS name for the control plane. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for super-admin |
--kubeconfig-dir string Default: "/etc/kubernetes" |
| The path where to save the kubeconfig file. |
--kubernetes-version string Default: "stable-1" |
| Choose a specific Kubernetes version for the control plane. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
34 -
Updates settings relevant to the kubelet after TLS bootstrap
Synopsis
Updates settings relevant to the kubelet after TLS bootstrap
kubeadm init phase kubelet-finalize [flags]
Examples
# Updates settings relevant to the kubelet after TLS bootstrap"
kubeadm init phase kubelet-finalize all --config
Options
-h, --help |
| help for kubelet-finalize |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
35 -
Run all kubelet-finalize phases
Synopsis
Run all kubelet-finalize phases
kubeadm init phase kubelet-finalize all [flags]
Examples
# Updates settings relevant to the kubelet after TLS bootstrap"
kubeadm init phase kubelet-finalize all --config
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for all |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
36 -
Enable kubelet client certificate rotation
Synopsis
Enable kubelet client certificate rotation
kubeadm init phase kubelet-finalize enable-client-cert-rotation [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for enable-client-cert-rotation |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
37 -
Enable kubelet client certificate rotation (DEPRECATED: use 'enable-client-cert-rotation' instead)
Synopsis
Enable kubelet client certificate rotation (DEPRECATED: use 'enable-client-cert-rotation' instead)
kubeadm init phase kubelet-finalize experimental-cert-rotation [flags]
Options
--cert-dir string Default: "/etc/kubernetes/pki" |
| The path where to save and store the certificates. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for experimental-cert-rotation |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
38 -
Write kubelet settings and (re)start the kubelet
Synopsis
Write a file with KubeletConfiguration and an environment file with node specific kubelet settings, and then (re)start kubelet.
kubeadm init phase kubelet-start [flags]
Examples
# Writes a dynamic environment file with kubelet flags from a InitConfiguration file.
kubeadm init phase kubelet-start --config config.yaml
Options
--config string |
| Path to a kubeadm configuration file. |
--cri-socket string |
| Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for kubelet-start |
--image-repository string Default: "registry.k8s.io" |
| Choose a container registry to pull control plane images from |
--node-name string |
| Specify the node name. |
--patches string |
| Path to a directory that contains files named "target[suffix][+patchtype].extension". For example, "kube-apiserver0+merge.yaml" or just "etcd.json". "target" can be one of "kube-apiserver", "kube-controller-manager", "kube-scheduler", "etcd", "kubeletconfiguration", "corednsdeployment". "patchtype" can be one of "strategic", "merge" or "json" and they match the patch formats supported by kubectl. The default "patchtype" is "strategic". "extension" must be either "json" or "yaml". "suffix" is an optional string that can be used to determine which patches are applied first alpha-numerically. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
39 -
Mark a node as a control-plane
Synopsis
Mark a node as a control-plane
kubeadm init phase mark-control-plane [flags]
Examples
# Applies control-plane label and taint to the current node, functionally equivalent to what executed by kubeadm init.
kubeadm init phase mark-control-plane --config config.yaml
# Applies control-plane label and taint to a specific node
kubeadm init phase mark-control-plane --node-name myNode
Options
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for mark-control-plane |
--node-name string |
| Specify the node name. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
40 -
Run pre-flight checks
Synopsis
Run pre-flight checks for kubeadm init.
kubeadm init phase preflight [flags]
Examples
# Run pre-flight checks for kubeadm init using a config file.
kubeadm init phase preflight --config kubeadm-config.yaml
Options
--config string |
| Path to a kubeadm configuration file. |
--cri-socket string |
| Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for preflight |
--ignore-preflight-errors strings |
| A list of checks whose errors will be shown as warnings. Example: 'IsPrivilegedUser,Swap'. Value 'all' ignores errors from all checks. |
--image-repository string Default: "registry.k8s.io" |
| Choose a container registry to pull control plane images from |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
41 -
Show the join command for control-plane and worker node
Synopsis
Show the join command for control-plane and worker node
kubeadm init phase show-join-command [flags]
Options
-h, --help |
| help for show-join-command |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
42 -
Upload certificates to kubeadm-certs
Synopsis
Upload control plane certificates to the kubeadm-certs Secret
kubeadm init phase upload-certs [flags]
Options
--certificate-key string |
| Key used to encrypt the control-plane certificates in the kubeadm-certs Secret. The certificate key is a hex encoded string that is an AES key of size 32 bytes. |
--config string |
| Path to a kubeadm configuration file. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for upload-certs |
--kubeconfig string Default: "/etc/kubernetes/admin.conf" |
| The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file. |
--skip-certificate-key-print |
| Don't print the key used to encrypt the control-plane certificates. |
--upload-certs |
| Upload control-plane certificates to the kubeadm-certs Secret. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
43 -
Upload the kubeadm and kubelet configuration to a ConfigMap
Synopsis
This command is not meant to be run on its own. See list of available subcommands.
kubeadm init phase upload-config [flags]
Options
-h, --help |
| help for upload-config |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
44 -
Upload all configuration to a config map
Synopsis
Upload all configuration to a config map
kubeadm init phase upload-config all [flags]
Options
--config string |
| Path to a kubeadm configuration file. |
--cri-socket string |
| Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for all |
--kubeconfig string Default: "/etc/kubernetes/admin.conf" |
| The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
45 -
Upload the kubeadm ClusterConfiguration to a ConfigMap
Synopsis
Upload the kubeadm ClusterConfiguration to a ConfigMap called kubeadm-config in the kube-system namespace. This enables correct configuration of system components and a seamless user experience when upgrading.
Alternatively, you can use kubeadm config.
kubeadm init phase upload-config kubeadm [flags]
Examples
# upload the configuration of your cluster
kubeadm init phase upload-config --config=myConfig.yaml
Options
--config string |
| Path to a kubeadm configuration file. |
--cri-socket string |
| Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for kubeadm |
--kubeconfig string Default: "/etc/kubernetes/admin.conf" |
| The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |
46 -
Upload the kubelet component config to a ConfigMap
Synopsis
Upload the kubelet configuration extracted from the kubeadm InitConfiguration object to a kubelet-config ConfigMap in the cluster
kubeadm init phase upload-config kubelet [flags]
Examples
# Upload the kubelet configuration from the kubeadm Config file to a ConfigMap in the cluster.
kubeadm init phase upload-config kubelet --config kubeadm.yaml
Options
--config string |
| Path to a kubeadm configuration file. |
--cri-socket string |
| Path to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket. |
--dry-run |
| Don't apply any changes; just output what would be done. |
-h, --help |
| help for kubelet |
--kubeconfig string Default: "/etc/kubernetes/admin.conf" |
| The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file. |
Options inherited from parent commands
--rootfs string |
| The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path. |