متقدم
البحث فيالملخصات
طريقة البحث
  • الكلمات تجد عناوين الدروس والنص والكود. صفِّ حسب النوع (أدلة، دورات، برامج، كتب) أو ابقَ في هذا الكتاب.
  • book:rhcsa و ch:8 يضيّقان البحث؛ ‎#code يجد الكلمة داخل أوامر الدروس فقط.
  • "كلمتان" تجد العبارة بالضبط.
  • الكلمات العادية تجد الأسماء والنصوص والأمثلة.
  • ↑ ↓ للتنقل · Enter للفتح · Esc للإغلاق · / للبحث
جرّب:

الدورة 6الاسم في الدورة: Crush the CKA Exam

Crush the CKA Exam

Course 6 of 13 in the Alta3 Academy library. Alta3 Academy self-paced course.

ملاحظة

My result — Lessons read: all 35/35; Course progress: 100%.

  • 11 الدروس
  • 3 الأوامر
  • 2 المعامل

هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.

$ مستخدم عادي# بصلاحية root (أو مع sudo)

6.1

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.

6.2

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, and node-2.
  • Copy and paste works in the browser terminal. Use it for long commands.
  • You can rebuild the environment if a lab goes wrong.

6.3

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.

6.4

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.

6.5

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:

الأوامر في هذا الدرس

6.6

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-2 to the cluster with kubeadm join.
  • Upgrade the controller from v1.31.4 to v1.32.1, and match kubelet and kubectl.
  • Fix node-1 so it leaves the NotReady state.

6.7

Key commands and tools

6.8

Key terms

The words of this course in one table. Learn them before the quiz or exam.

TermMeaning
CKACertified Kubernetes Administrator. The exam this course practices for.
ClusterRoleA role with rights that work in every namespace.
ClusterRoleBindingLinks a ClusterRole to a user or a ServiceAccount across the whole cluster.
ConfigMapAn object that holds normal settings for a Pod.
CoreDNSThe DNS server of the cluster. It reads its rules from a Corefile.
drillA lab command that prepares the objects for one mock task.
GatewayA Gateway API object that listens for traffic and sends it to routes.
headless ServiceA Service with no cluster IP. Each Pod gets its own DNS name.
HTTPRouteA Gateway API rule that sends an HTTP path to a Service.
LimitRangeAn object that sets default and maximum resources for containers in a namespace.
mock examA practice test built to look and feel like the real exam.
Node affinityA rule that sends a Pod to nodes with a matching label.
PersistentVolumeReal storage in the cluster, ready to be used.
PersistentVolumeClaimA Pod's request for storage.
reclaim policyWhat happens to a PV after its PVC is deleted. Retain keeps it.
revisionA saved version of a Deployment. You can roll back to one.
ServiceAccountAn identity for Pods and tools inside the cluster.
sidecarAn extra container in the same Pod that helps the app.
StorageClassA rule that creates storage on demand.
taintA mark on a node that keeps most Pods away.
taskOne short exam job. Read it, do it, and check it.
tolerationA Pod setting that lets the Pod go onto a tainted node.

6.9

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.

الأوامر في هذا الدرس

تدرّب

كل الأوامر في هذا الفصل