Skip to content
masterclass Buddy

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.

Subscribe
  • EndpointSlice
  • Ingress
  • Gateway API
  • ClusterIP
  • NodePort
  • LoadBalancer
  • ExternalName
  • headless Service

Source: Service | Kubernetes. Checked 2026-11-03.