ingress.yaml 350 B

12345678910111213141516171819
  1. apiVersion: networking.k8s.io/v1
  2. kind: Ingress
  3. metadata:
  4. name: gogs-ingress
  5. namespace: cicd
  6. annotations: {}
  7. spec:
  8. rules:
  9. - host: git.cestong.com.cn
  10. http:
  11. paths:
  12. - path: /
  13. pathType: Prefix
  14. backend:
  15. service:
  16. name: gogs
  17. port:
  18. number: 80
  19. ingressClassName: nginx