Kubernetes manifests · Services and Ingress

Service (public load balancer)

Ask the cloud provider for an external load balancer.

apiVersion: v1
kind: Service
metadata:
  name: web
spec:
  type: LoadBalancer
  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

Was this page helpful?