Certified Kubernetes Administrator (CKA) · Section 1 · 25% of the exam
Create and manage Kubernetes clusters using kubeadm
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
On a kubeadm control-plane node, in which directory does the kubelet find the static Pod manifests for the API server, controller manager, scheduler and etcd?
- A
/opt/cni/bin - B
/etc/kubernetes/manifests - C
/var/lib/kubelet/plugins_registry - D
/etc/kubernetes/pki/etcd
Show the answer
B. Static Pods are defined by files in the kubelet's staticPodPath, /etc/kubernetes/manifests on kubeadm clusters. Changing a file there makes the kubelet recreate that component.
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)
- Prepare underlying infrastructure for installing a Kubernetes cluster
- 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