CKA · Question #19
For this item, you will have to ssh to the nodes ik8s-master-0 and ik8s-node-0 and complete all tasks on these nodes. Ensure that you return to the base node (hostname: node-1) when you have…
This simulation tests your ability to bootstrap a Kubernetes cluster from scratch using kubeadm - initializing a control plane on the master node and joining a worker node to that cluster.
Question
Explanation
This simulation tests your ability to bootstrap a Kubernetes cluster from scratch using kubeadm - initializing a control plane on the master node and joining a worker node to that cluster.
Approach. On ik8s-master-0, run 'kubeadm init --ignore-preflight-errors=all' to initialize the control plane; then configure kubectl by copying /etc/kubernetes/admin.conf to ~/.kube/config. Capture the 'kubeadm join' command printed at the end of init output (it contains the API server address, token, and CA cert hash). SSH to ik8s-node-0 and run that join command appended with '--ignore-preflight-errors=all' to register it as a worker. Finally, return to node-1 and optionally verify with 'kubectl get nodes' to confirm both nodes appear.
Concept tested. Kubernetes cluster bootstrapping with kubeadm - specifically: control plane initialization (kubeadm init), kubeconfig setup for kubectl access, and worker node registration (kubeadm join) including token-based authentication between nodes.
Reference. https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/
Topics
Community Discussion
No community discussion yet for this question.