# ClusterIP Service: stable virtual IP and DNS name (web.demo.svc.cluster.local).
apiVersion: v1
kind: Service
metadata:
  name: web
  namespace: demo
spec:
  type: ClusterIP
  selector:
    app.kubernetes.io/name: web
  ports:
    - name: http
      port: 80          # port clients use
      targetPort: http  # named container port (8080)
