Kubernetes manifests · Services and Ingress
Service (internal)
Give pods a stable internal address and spread traffic across them.
apiVersion: v1
kind: Service
metadata:
name: web
spec:
selector:
app: web
ports:
- port: 80
targetPort: 80
Official Kubernetes manifests documentation
More services and ingress commands
All services and ingress commands · Kubernetes manifests cheatsheet