Initializing the Kubernetes Cluster on the master node.

Mohit Kumar
2 min readMay 1, 2022

Now you have all the prerequisites performed and we are ready to proceed with the configuration of our cluster. We are going to perform these steps on the master node and later on join our worker nodes to the cluster.

Just perform the kubeadm init on the master node.

kubeadm init

The Kubeadm init will perform the following operations

  1. preflight — perform pre-flight checks (pre checks)
  2. certs — Generate the certificates
  3. kubeconfig — Generate all the configuration necessary to establish the control plane
  4. kubelet-start — Write kubelet settings and Start the kubelet
  5. control-plane — Generete all static Pod Manifests files necessary to establish the control plane
  6. etcd — Generate the static Pod manifest file for local etcd
  7. upload-config — Upload the kubeadm and kubelete config to configMap
  8. upload-certs — Upload certificates to kubeadm-certs
  9. mark-control-plane — Mark a node as a control plane
  10. bootstrap-token — Generates the bootstrap tokens used to join a node to a cluster
  11. kubelet-finalize — Updates the settings relevant to the kubelet
  12. addon — Install required addons for passing conformance tests

Some of the following options can be used to customize the configuration of the Kubeadm init

— pod-network-cidr string
--service-dns-domain string Default: "cluster.local"
--service-cidr string Default: "10.96.0.0/12"
--token-ttl duration Default: 24h0m0s

So we are going to initialize our cluster using the following options

kubeadm init — pod-network-cidr=”10.244.0.0/16" — service-dns-domain=”testlab.local”

The logs for the operations are as follows. You can see the set of operation as mentioned above.

--

--

Mohit Kumar

Making people communicate since 2010. Wireless Networking Professional based in Melbourne. https://mohitkr.com