Passing the CKA was a real milestone for me. It wasn't easy, but it pushed me to understand Kubernetes a level deeper than "it works in our cluster". Below are tasks I got in the exam, how I solved them, and a few things I'd tell anyone sitting it next.
One warning first: the CKA curriculum was updated in February 2025 (Helm, Kustomize, Gateway API and CRDs/operators were added). The tasks here are still core material, but check the current curriculum before you build your study plan around my list.
Task: Add an init container to the pod hungry-bear that creates an empty file /workdir/calm.txt. If the file isn't detected, the pod should exit.
Init containers run to completion before the main containers start, so they're the natural place for setup like this. The trick is the shared emptyDir: both containers mount it, the init container writes the file, the main container checks for it. See the init containers docs.
Task: Upgrade the control plane and node components on the master node from 1.30.0 to 1.30.1. Don't upgrade etcd.
The order matters, and it's easy to get wrong under pressure: upgrade kubeadm first, run kubeadm upgrade apply, then drain, then upgrade kubelet and kubectl, restart kubelet, uncordon. Follow the kubeadm upgrade docs, they're allowed in the exam.
The package version suffix depends on the repo. The new pkgs.k8s.io repos use 1.30.1-1.1, the old (frozen) apt.kubernetes.io used 1.30.1-00. Don't guess, run apt-cache madison kubeadm and copy the exact string.
--delete-local-data was removed from kubectl drain. Use --delete-emptydir-data.
Task: Create a secret named super-secret with the password bob and use it in two pods: one as a file mount, one as an environment variable. See Secrets.
Check both before moving on: kubectl exec pod-secrets-via-file -- cat /secrets/password and kubectl exec pod-secrets-via-env -- env | grep CONFIDENTIAL.
Task: Create a deployment named nginx-random, expose it via a service, and make sure the service and the pods resolve via DNS. Save the lookup results to files.
For a pod, the record is the pod IP with dashes instead of dots, e.g. 10-244-1-5.default.pod.cluster.local. Get the IP with kubectl get pod -o wide and look that name up the same way.
Task: Create a ClusterRole named deployment-clusterrole that allows creating Deployments, StatefulSets and DaemonSets. Bind it to a ServiceAccount named cicd-token in the app-team1 namespace. See RBAC.
The task says "in the namespace", so it's a RoleBinding (scoped to app-team1) pointing at a ClusterRole, not a ClusterRoleBinding.
Practice on real scenarios. The exam is all practical. Deploying apps, storage, troubleshooting, you need to be fast at all of it, not just know it.
Get fast with YAML. Don't write manifests from scratch. Generate them and edit:
alias k=kubectlexport do="--dry-run=client -o yaml"k run nginx --image=nginx $do > pod.yamlk create deploy web --image=nginx $do > deploy.yaml
When you forget a field, kubectl explain pod.spec.initContainers is faster than searching the docs.
Switch context on every task. Each task tells you which cluster to use and gives you the kubectl config use-context command. Run it every time. Solving the right task on the wrong cluster gets you zero.
Manage your time. Do the tasks you're confident about first, flag the hard ones, come back later. The weight of each task is shown, so a 4% task isn't worth 15 minutes.
Stay calm. It's intense. Calm and methodical works better than fast and sloppy.
A note on how this was written: I used AI to help with phrasing and structure. The tone, the opinions, the war stories, the code, and everything else here are mine.