svc.yaml 304 B

12345678910111213141516171819
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: gogs
  6. namespace: cicd
  7. spec:
  8. type: ClusterIP
  9. selector:
  10. app.kubernetes.io/name: gogs
  11. ports:
  12. - protocol: TCP
  13. port: 80
  14. targetPort: 6161
  15. name: "web"
  16. - protocol: TCP
  17. port: 8162
  18. targetPort: 22
  19. name: "ssh"