Kubernetes Service

The Kubernetes object that gives a changing set of pods one stable name and address, and spreads traffic across the ready ones.

In more detail

Pods come and go and their IP addresses change, so clients talk to the Service instead. A label selector chooses the pods, EndpointSlices list the ready ones, and cluster DNS gives the Service a name. The type, ClusterIP, NodePort, LoadBalancer or ExternalName, decides where it can be reached from.

Example

kubectl get svc web

Related terms

Related guides

Taught in

References

Certification courses