CertLumen

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 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

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?

  1. ACreate a ConfigMap named kubeadm-init before the cluster exists
  2. BSet environment variables KUBEADM_POD_CIDR and KUBEADM_VERSION
  3. CEdit /etc/kubernetes/pki/ca.crt with the desired settings and restart the kubelet
  4. 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

← Previous objective · All 27 objectives · Next objective →