service-ssh.yaml 290 B

1234567891011121314
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: gogs-ssh
  5. namespace: git
  6. spec:
  7. type: LoadBalancer # Use NodePort if you don't have a LoadBalancer
  8. selector:
  9. app: gogs
  10. ports:
  11. - name: ssh
  12. port: 22
  13. targetPort: 22
  14. # nodePort: 30022 # Uncomment if using NodePort