Initialize the Kubernetes Control Plane
Use kubeadm to initialize the Kubernetes control plane on the master node.
2 min read
🧭 Step 3: Initialize the Kubernetes Control Plane
In this step, you'll use kubeadm to initialize the Kubernetes cluster from the control plane node.
✅ Tip: Replace
<your-node-hostname>with names likecp-node-1,worker-1, etc., to keep things clear.
📍 On the Control Plane Node (cp-node-1)
Run the following command:
bash
🔍 Explanation
--apiserver-advertise-address: This is the IP address of your control plane node.--pod-network-cidr: Required for the Pod network. For example, Flannel uses10.244.0.0/16.
🖥️ Example Output
You should see output ending like this:
bash
🛠 Configure kubectl Access
Now copy the admin.conf to your user's .kube directory:
bash
Once done, test access using:
bash
You should see the control plane node in a NotReady state—this is expected because the pod network is not yet installed.
🔧 What kubeadm Did
- Created
/etc/kubernetes/manifests/containing static pod definitions for:kube-apiserverkube-controller-managerkube-scheduler
- Set up a working etcd and control plane environment.
- Generated all required certificates.
⏭ Next Step
Now that the control plane is ready, let's install a Pod network plugin.