gogs-svc.yaml 342 B

1234567891011121314151617181920
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: gogs
  5. spec:
  6. type: NodePort
  7. ipFamilyPolicy: PreferDualStack
  8. selector:
  9. name: gogs
  10. ports:
  11. - protocol: TCP
  12. port: 50001
  13. targetPort: 3000
  14. nodePort: 31444
  15. name: http
  16. - protocol: TCP
  17. port: 50002
  18. targetPort: 22
  19. nodePort: 31443
  20. name: ssh