apiVersion: networking.k8s.io/v1
kind: Ingress  
metadata:  
  name: webgatos-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:  
  rules:
   - http:
      paths:
      - path: /webgatos
        pathType: Prefix
        backend:
          service:
            name: webgatos
            port:
              number: 5000
            