Certified Kubernetes Administrator (CKA) · Section 1 · 25% of the exam
Prepare underlying infrastructure for installing a Kubernetes cluster
One of the objectives of the Certified Kubernetes Administrator (CKA) exam, in the section “Cluster Architecture, Installation and Configuration”. Here is what it covers, the points to remember and a question to try.
What it covers
Before kubeadm can build a cluster, every machine needs the right hardware, networking, kernel settings, a container runtime and the Kubernetes packages. This lesson covers those prerequisites, then kubeadm init, installing a CNI plugin, kubeadm join, the files kubeadm creates, and how to reset a node.
Points to remember
- kubeadm needs prepared machines: 2 GB RAM, 2 CPUs on control plane, swap off, unique hostname/MAC/product_uuid.
- Load
overlayandbr_netfilter; setnet.ipv4.ip_forward=1. - Container runtime (containerd or CRI-O) must use the systemd cgroup driver; Dockershim was removed in 1.24.
- Install kubeadm, kubelet, kubectl from pkgs.k8s.io and hold their versions.
kubeadm initgenerates PKI, kubeconfigs and static Pod manifests;--pod-network-cidrhas no default.
Try a question
A team uses VMs that already have containerd, kubeadm, kubelet and kubectl installed. They want a reproducible init instead of a long list of flags. Which approach is supported?
- ACreate a ConfigMap named
kubeadm-initbefore the cluster exists - BSet environment variables
KUBEADM_POD_CIDRandKUBEADM_VERSION - CEdit
/etc/kubernetes/pki/ca.crtwith the desired settings and restart the kubelet - DWrite a kubeadm configuration file and run
kubeadm init --config <file>
Show the answer
D. kubeadm init --config accepts a YAML file with kinds such as InitConfiguration and ClusterConfiguration. kubeadm config print init-defaults produces a starting point.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Preparing infrastructure and building a cluster with kubeadm teaches this objective (about 50 minutes), and 15 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Manage role based access control (RBAC)
- Create and manage Kubernetes clusters using kubeadm
- Manage the lifecycle of Kubernetes clusters
- Implement and configure a highly-available control plane
- Use Helm and Kustomize to install cluster components
- Understand extension interfaces (CNI, CSI, CRI, etc.)
- Understand CRDs, install and configure operators