CertLumen

Certified Kubernetes Administrator (CKA) · Section 3 · 20% of the exam

Understand connectivity between Pods

One of the objectives of the Certified Kubernetes Administrator (CKA) exam, in the section “Services and Networking”. Here is what it covers, the points to remember and a question to try.

What it covers

Every Pod gets its own IP and can reach every other Pod without NAT, because a CNI plugin builds the network. NetworkPolicies then restrict that open default: they are additive allow-lists that only work if your CNI enforces them.

Points to remember

  • Every Pod has its own IP and reaches every other Pod without NAT; a CNI plugin implements this
  • No CNI means NotReady nodes and Pending CoreDNS Pods
  • Pod CIDR, Service CIDR and node network must not overlap
  • Pods are non-isolated until a policy selects them for a direction
  • NetworkPolicies are additive allow-lists with no deny rules

Try a question

A NetworkPolicy has been applied that denies all traffic to a database, but the database is still reachable from any Pod. The API server accepted the manifest without errors. The cluster uses Flannel as its only CNI. What is the likely reason?

  1. ANetworkPolicies must be applied in kube-system
  2. BThe policyTypes field must be set to Deny
  3. CThe database Pod must be restarted to pick up the policy
  4. DFlannel does not enforce NetworkPolicy, so the object has no effect
Show the answer

D. The API server stores NetworkPolicy objects regardless of the network plugin. Without a CNI that enforces them (Calico, Cilium, Antrea and others), they are ignored.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Pod Connectivity and Network Policies teaches this objective (about 45 minutes), and 19 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 →