gogs-service.yaml 337 B

12345678910111213141516171819202122
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: gogs-app
  5. namespace: gogs
  6. labels:
  7. app: gogs-app
  8. spec:
  9. ports:
  10. - name: ssh
  11. protocol: TCP
  12. port: 22
  13. targetPort: 22
  14. nodePort: 30022
  15. - name: http
  16. protocol: TCP
  17. port: 3000
  18. targetPort: 3000
  19. nodePort: 30009
  20. selector:
  21. app: gogs-app
  22. type: NodePort