โ† Kubernetes Administrator (CKA) Exam Practice learning path
Kubernetes Administrator (CKA) Exam Practice ยท Module 5 of 10

Services and networking

Exposing and connecting pods.

๐Ÿ“– Key ideas

  1. Services give stable virtual IPs and DNS names to sets of pods selected by labels.
  2. Types: ClusterIP (internal), NodePort (port on each node, default range 30000 to 32767), LoadBalancer (cloud LB) and ExternalName.
  3. CoreDNS resolves names like web.default.svc.cluster.local.
  4. Ingress routes HTTP/HTTPS by host and path through an ingress controller; the Gateway API is the newer approach.
  5. NetworkPolicies restrict pod traffic; they need a CNI plugin that supports them.
๐Ÿ’ก Real-life example: Like a company switchboard number (Service) that connects to whichever staff member (pod) is available.
ClusterIPInternal-only service IP
NodePortExposes service on a port of every node
IngressHTTP routing into the cluster
NetworkPolicyRules restricting pod traffic