Kubernetes Service
Question
What is a Kubernetes Service?
Hint
Services give Pods a stable IP and DNS name.
Explanation
A Kubernetes Service provides a stable network identity (IP and DNS name) for a group of Pods. Since Pods are ephemeral (new IP on restart), Services abstract this. Types: 1) ClusterIP (internal, default). 2) NodePort (expose on node port). 3) LoadBalancer (cloud LB). 4) ExternalName (DNS CNAME). Services use selectors to target Pods. Endpoints track healthy Pod IPs. Services enable load balancing across Pods. Ingress is an alternative for HTTP routing. Use Services for internal communication, Ingress for external HTTP/HTTPS.
Related Resources
Related Lessons
- Kubernetes
Learn K8s.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.