service.yaml 291 Bytes
Newer Older
zhangweiwei's avatar
init  
zhangweiwei committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
apiVersion: v1
kind: Service
metadata:
  name: h2demo
spec:
  externalTrafficPolicy: Local
  ports:
    - port: 80
      targetPort: 80
      name: http
    - port: 443
      targetPort: 443
      name: https
  selector:
    app: h2demo
  type: LoadBalancer
  loadBalancerIP: 130.211.116.44