<p>When running skaffold dev command, I get this error:</p>
<pre><code>- for: &quot;STDIN&quot;: admission webhook &quot;validate.nginx.ingress.kubernetes.io&quot; denied the request: host &quot;ticketing.dev&quot; and path &quot;/api/users/?(.*)&quot; is already defined in ingress default/ingress-service
time=&quot;2021-06-20T19:55:11+03:00&quot; level=warning msg=&quot;Skipping deploy due to error: kubectl apply: exit status 1&quot;
</code></pre>
<p>when I change the path &quot;/api/users/?(.<em>)&quot; to something like &quot;/api/usersssss/?(.</em>)&quot;, the error dissapears</p>
<p>restarting my machine doesn't help</p>
<p>any que?</p>
<p>ingress-srv.yaml:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-srv
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/use-regex: 'true'
spec:
  rules:
    - host: ticketing.dev
      http:
        paths:
          - path: /api/users/?(.*)
            pathType: Prefix
            backend:
              service:
                name: auth-srv
                port:
                  number: 3000
</code></pre>
<p>skaffold.yaml:</p>
<pre><code>apiVersion: skaffold/v2beta17
kind: Config
metadata:
  name: tickets
build:
  artifacts:
  - image: natankamusher/auth
    context: auth
    docker:
      dockerfile: Dockerfile
deploy:
  kubectl:
    manifests:
    - infra/k8s/auth-depl.yaml
    - infra/k8s/ingress-srv.yaml
</code></pre>

Nati Kamusher
<p>run the below command to</p>
<pre><code>kubectl delete Ingress ingress-srv
</code></pre>
<p>ingress-srv is the name of the service</p>
