هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.
$ مستخدم عادي# بصلاحية root (أو مع sudo)
What the course covers
A full mock CKA exam. Most lessons are one short task.
- How to build a test cluster before you start the tasks.
- How to read a task and change only what the task asks.
- Practice with kubectl, YAML, and the Kubernetes documentation.
- Practice with kubeadm: join a node, upgrade a node, and fix a node.
- Exam habits: check your work, watch the clock, and keep the cluster clean.
- A task map of all 23 practice tasks, so you know what to expect.
- A set of high-risk tasks that can break the whole cluster.
Welcome to Alta3 Research Labs!
The lab is self-paced. You work in a browser and a Linux shell.
- The machines are
bchd,controller,node-1, andnode-2. - Copy and paste works in the browser terminal. Use it for long commands.
- You can rebuild the environment if a lab goes wrong.
Required Tools
Vim: press i to type, Esc to leave insert mode, and :wq to save and quit.
- tmux: split the terminal into panes, so two commands stay in view.
- The lab starts you inside a tmux session, so panes are ready to use.
- The course says these two tools save real exam minutes.
Let's Crush the CKA!
The mock exam uses the real style: Objective, Summary, Tasks, and Hints/Answers.
- The real exam gives you 120 minutes for about 17 to 19 tasks. There are no multiple-choice questions.
- Check every answer. If time allows, check it a third time.
- You may use kubernetes.io during the exam. Know the important pages before exam day.
Mock Exam Tasks: Part 1
Run setup cka-exam first. It builds a kubeadm cluster in about three minutes.
- Most tasks start with
drill <name>. The drill creates the broken or half-made objects. - Do the task, then check it with
kubectl get,kubectl describe, or a real request. - Some tasks ask you to save an answer to a file under
/opt/cka/answers/. Read the path twice. The task map:
Mock Exam Tasks: Part 2
A warning page lists the risk: etcd, certificates, and kubeadm can break the cluster, and a rebuild erases all your work.
- Join
node-2to the cluster withkubeadm join. - Upgrade the controller from v1.31.4 to v1.32.1, and match kubelet and kubectl.
- Fix
node-1so it leaves the NotReady state.
Key commands and tools
setup cka-exam— build the practice cluster.drill <task>— prepare the objects for one task.kubectl get pods -n <ns>— list Pods in a namespace.kubectl get deploy <name> -n <ns> -o yaml— read a Deployment as YAML.kubectl scale deploy dragon --replicas=8— change the replica count.kubectl edit deploy deppy— change a live object in the editor.kubectl expose deploy deppy --type=NodePort --name=deppysvc --port=80— make a Service.kubectl create secret generic juicysecret --from-literal=username=<value>— make a Secret.kubectl create configmap metal-cm --from-file=metal.html— make a ConfigMap.kubectl logs fnf | grep file-not-found > /opt/cka/answers/sorted_log.log— filter logs to a file.kubectl rollout history deploy/mufasa -n king-of-lions— see the revisions.kubectl rollout undo deploy/mufasa -n king-of-lions— go back one revision.kubectl top pod -n integration --sort-by=cpu— find the Pod with the most CPU.kubectl apply -f file.yamlandkubectl apply -k .— apply a manifest or a Kustomize overlay.kubectl get pvc,pv— check storage and the reclaim policy.kubectl label node node-1 disktype=ssd— add a node label for affinity.kubectl get pod dedicated-pod -o wide— confirm which node the Pod landed on.kubectl -n kube-system edit configmap coredns— edit the CoreDNS Corefile.kubectl run -it dns-test --image=busybox:1.28 --restart=Never -- sh— start a test Pod for DNS checks.kubectl get hpaandkubectl get events— check the autoscaler and recent events.kubectl drain controller --ignore-daemonsets --force— empty the node before an upgrade.kubectl uncordon controller— allow Pods back on the node.helm install <release> <chart> -n <ns> --set key=value— install a chart.kubeadm token create --print-join-command— print the join line fornode-2.kubeadm upgrade planandkubeadm upgrade apply v1.32.1— plan and run the upgrade.apt-mark unhold kubeadm kubelet kubectl— unlock the packages before an upgrade.systemctl restart kubelet— restart the node agent.kubectl get nodesandkubectl describe node node-1— read node state and conditions.kubectl describe svc deppysvc— check that a Service has endpoints.
Key terms
The words of this course in one table. Learn them before the quiz or exam.
| Term | Meaning |
|---|---|
| CKA | Certified Kubernetes Administrator. The exam this course practices for. |
| ClusterRole | A role with rights that work in every namespace. |
| ClusterRoleBinding | Links a ClusterRole to a user or a ServiceAccount across the whole cluster. |
| ConfigMap | An object that holds normal settings for a Pod. |
| CoreDNS | The DNS server of the cluster. It reads its rules from a Corefile. |
| drill | A lab command that prepares the objects for one mock task. |
| Gateway | A Gateway API object that listens for traffic and sends it to routes. |
| headless Service | A Service with no cluster IP. Each Pod gets its own DNS name. |
| HTTPRoute | A Gateway API rule that sends an HTTP path to a Service. |
| LimitRange | An object that sets default and maximum resources for containers in a namespace. |
| mock exam | A practice test built to look and feel like the real exam. |
| Node affinity | A rule that sends a Pod to nodes with a matching label. |
| PersistentVolume | Real storage in the cluster, ready to be used. |
| PersistentVolumeClaim | A Pod's request for storage. |
| reclaim policy | What happens to a PV after its PVC is deleted. Retain keeps it. |
| revision | A saved version of a Deployment. You can roll back to one. |
| ServiceAccount | An identity for Pods and tools inside the cluster. |
| sidecar | An extra container in the same Pod that helps the app. |
| StorageClass | A rule that creates storage on demand. |
| taint | A mark on a node that keeps most Pods away. |
| task | One short exam job. Read it, do it, and check it. |
| toleration | A Pod setting that lets the Pod go onto a tainted node. |
Check yourself
Answer each question first, then open it to check the answer.
1How long is the real CKA exam, and roughly how many tasks does it have?
120 minutes, with about 17 to 19 tasks. The exam is task based, not multiple choice.
2What does drill <task> do before a mock task?
It prepares the objects for that task: a Deployment, a Pod, a broken network rule, or a similar starting point.
3A Deployment is broken after a bad update. Which command shows the old revisions, and which command goes back?
kubectl rollout history deploy/<name> shows the revisions. kubectl rollout undo deploy/<name> returns to the last working one. Add --to-revision=<n> for a specific one.
4Which CNI should you pick when a task mentions NetworkPolicy?
Calico. It does Pod networking and enforces NetworkPolicy. Flannel alone does not.
5Why are the Part 2 tasks marked as high risk?
They change etcd, certificates, or cluster nodes with kubeadm. A wrong command can damage the cluster, and a rebuild erases all earlier work.
Useful links
Official documentation and pages for this course.
- alta3.com — the training company that made this course.
- Alta3 on YouTube — free videos and demos.
- Alta3 on GitHub — code, examples, and lab files.