← CKA: Kubernetes administration and troubleshooting
02 / 13 · 50 MIN

Prepare, install, and upgrade the cluster

Connect prerequisites, endpoint identity, and version sequence to evidence of a usable cluster.

Preparation that avoids repeating bootstrap

Before init, prepare unique names and identities, resolution and connectivity between nodes, enough resources, and access to required images. Compare host, Pod, and Service address spaces; overlapping networks introduce ambiguity that a Ready object does not remove.

The runtime must supply compatible CRI. The kubelet socket must correspond to the running runtime; a service named containerd does not prove its CRI plugin is active. Read preflight errors and local logs before changing another component.

Host state and effective configuration

Swap configuration must match the kubelet’s supported policy: failSwapOn: false is not the same as permitting workloads to use swap. The latter also depends on swapBehavior and version requirements. Kubelet and runtime need a consistent cgroup view.

With KubeletCgroupDriverFromCRI enabled and a runtime supporting RuntimeConfig, CRI detection can take precedence over the file’s cgroupDriver. Compare versions and effective state: editing a key without knowing its consumer may change nothing.

Changing the driver on an occupied node needs a replacement or maintenance strategy that respects existing Pods.

Init, Pod networking, and join

kubeadm init prepares the control plane and produces access and join instructions. Treat tokens and administration material as credentials, not public-report text. Install a compatible network plugin and its configuration; kubeadm alone does not supply all Pod connectivity.

Acceptance should observe nodes, components, name resolution, and traffic from a representative client. During join, distinguish an endpoint timeout, identity/CA rejection, and an expired token. Repeating init on the worker does not repair those phases.

If several CRI sockets exist, identify the intended one rather than accepting an ambiguous choice.

High availability and shared dependencies

A stable API endpoint must match controlPlaneEndpoint and forward to healthy control planes. Three servers behind one unrecoverable load balancer still share a dependency. In a stacked design, the etcd member accompanies the control plane; with external etcd, that group has its own operations and failure modes.

Quorum requires a majority: three members need two available; spreading Pods does not change that arithmetic. Plan host, network, and zone failures with recovery of state data. A backup’s presence proves neither that restoration works nor that applications recover their own data.

Upgrade without violating compatibility

To move from 1.35 to 1.37 with kubeadm, pass through 1.36 and then 1.37, choosing supported patches and prerequisites at each stage. upgrade plan identifies the path and checks; upgrade apply acts on the first control plane and upgrade node on the others according to versioned documentation.

Updating kubeadm does not automatically update every kubelet/kubectl package or the CNI. With mixed 1.36 and 1.37 API servers, a 1.37 kubelet communicating with both is newer than one of them: finish the API-server stage before that update.

Maximum component skew is a compatibility boundary, not permission to skip versions in the kubeadm procedure.

Decide from an observation sequence

The block below collects state. kubeadm version reports the local binary version, not every cluster component’s version. Use context lab only if that is the name of your authorized environment. Compare conditions and versions before and after a stage and collect evidence from the client needing the service.

A PDB-blocked drain informs the decision: examine healthy replicas, capacity, and agreed risk instead of removing protection to meet the clock. For local kubelet/runtime errors, keep node-specific observations and correlate them with the API server.

Record the exact change and acceptance criterion without copying kubeconfigs or tokens into shared evidence.

kubectl config current-context
kubectl --context=lab get nodes -o wide
kubectl --context=lab get pods -n kube-system -o wide
kubectl --context=lab get events -A --sort-by=.metadata.creationTimestamp
kubeadm version
IN PRACTICE

A team prepares a window for three stacked control planes. The first uses 1.37 and the others still use 1.36; the plan proposes upgrading every worker immediately. The load balancer also has one address on a host without recovery.

Separate the two decisions: complete the compatible API-server sequence and address the common endpoint dependency. Do not declare the cluster resilient from machine count.

Common pitfalls

Repeating init for any failure; disabling CA checks; inferring quorum from Pod count; confusing tolerating swap with using it; updating every component simultaneously without checking skew.

Related topics: Kubernetes administration · Diagnosis and recovery

Take this idea with you

Accept each stage by its effect: a prepared host, confirmed identity, working network, and compatible version sequence.

Create account

References

Kubernetes® and CKA are trademarks or registered trademarks of The Linux Foundation. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by The Linux Foundation. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.