DevOps · Concept
Service
A Kubernetes Service gives a stable network endpoint to a changing group of Pods. Clients use the Service instead of tracking Pod IP addresses.
Last updated
Syntax
apiVersion: v1
kind: Service
metadata:
name: <name>
spec:
selector: <label-selector>
ports:
- port: <service-port>
targetPort: <pod-port>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
EndpointSliceIngressGateway APIClusterIPNodePortLoadBalancerExternalNameheadless Service