service.yaml 302 B

123456789101112131415161718192021
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: gitlab
  5. spec:
  6. ports:
  7. - name: ssh
  8. protocol: TCP
  9. port: 22
  10. targetPort: 22
  11. - name: http
  12. protocol: TCP
  13. port: 80
  14. targetPort: 80
  15. - name: https
  16. protocol: TCP
  17. port: 443
  18. targetPort: 443
  19. selector: {}
  20. type: LoadBalancer