gitlab-svc-lb.yaml 331 B

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