apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: gitlab
  namespace: public-service
  annotations:
    kubernetes.io/ingress.class: traefik
spec:
  rules:
  - host: gitlab.xxx.net
  - http:
      paths:
        - path: /testpath
          pathType: Prefix
          backend:
            service:
              name: gitlab
              port:
                number: 80

