CertLumen

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 overlay and br_netfilter; set net.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 init generates PKI, kubeconfigs and static Pod manifests; --pod-network-cidr has 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?

  1. A/opt/cni/bin
  2. B/etc/kubernetes/manifests
  3. C/var/lib/kubelet/plugins_registry
  4. 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

← Previous objective · All 27 objectives · Next objective →