apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: gogs-ingress namespace: cicd annotations: {} spec: rules: - host: git.cestong.com.cn http: paths: - path: / pathType: Prefix backend: service: name: gogs port: number: 80 ingressClassName: nginx