kubeadm:tldr:6e373
kubeadm: Create a Kubernetes master node.
$ kubeadm init
try on your machine
The kubeadm init
command is used to initialize a Kubernetes control plane.
When you run this command, it performs the following tasks:
- Checks if the necessary prerequisites are met on the system, including the required kernel modules, packages, and dependencies.
- Generates a unique token to be used for joining worker nodes to the cluster.
- Creates and starts the necessary control plane components, including the Kubernetes API server, etcd (key-value store for cluster data), controller manager, and scheduler.
- Generates the necessary certificates and encryption keys for securing the control plane components and communication.
- Initializes the desired network plugin (CNI).
- Prints the
kubeadm join
command that can be used to add worker nodes to the cluster.
Once the control plane is initialized, the kubeadm init
command also configures the local kubectl
command-line tool with the necessary credentials to interact with the Kubernetes cluster.
After executing kubeadm init
, you typically need to follow additional steps like running the kubectl apply
command to deploy a network plugin or configuring additional features like load balancing, DNS, etc., depending on your specific requirements.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.