Services

A Service gives a stable address and name to a set of Pods chosen by selector, and spreads traffic across them. The ClusterIP type is internal to the cluster, NodePort exposes a port on the nodes, LoadBalancer requests a load balancer from the cloud provider.

Example

apiVersion: v1
kind: Service
spec:
  selector:
    app: web
  ports:
    - port: 80

Related concepts

The whole glossary