service.yaml 291 B

1234567891011121314151617
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: h2demo
  5. spec:
  6. externalTrafficPolicy: Local
  7. ports:
  8. - port: 80
  9. targetPort: 80
  10. name: http
  11. - port: 443
  12. targetPort: 443
  13. name: https
  14. selector:
  15. app: h2demo
  16. type: LoadBalancer
  17. loadBalancerIP: 130.211.116.44