<p>Building a Microservices app(Node/React) with docker and kubernetes and I keep getting the following error when I run the <code>skaffold dev</code> command.</p>
<pre class="lang-sh prettyprint-override"><code>- stderr: &quot;error: unable to recognize ~/infra/k8s/ingress-srv.yaml\&quot;: no matches for kind \&quot;Ingress\&quot; in version \&quot;extensions/v1beta1\&quot;\n&quot;
</code></pre>
<p>This is my ingress-srv.yaml file:</p>
<pre class="lang-js prettyprint-override"><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ingress-serv
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/use-regex: &quot;true&quot;
spec:
  rules:
    - host: ticketing.dev
      http:
        paths:
          - pathType: Prefix
          - path: &quot;/api/users/?(.*)&quot;
            backend:
              service:
                name: auth-srv
                port:
                  number: 3000
</code></pre>
<p>And this is my skaffold.yaml file</p>
<pre class="lang-js prettyprint-override"><code>apiVersion: skaffold/v2alpha3
kind: Config
deploy:
  kubectl:
    manifests:
      - ./infra/k8s/*
build:
  local:
    push: false
  artifacts: 
    - image: mutuadocker/auth
      context: auth
      docker:
        dockerfile: Dockerfile
      sync: 
        manual: 
          - src: &quot;src/**/*.ts&quot;
            dest: .
</code></pre>

Joseph Mutua
<p>You should change <code>apiVersion: extensions/v1beta1</code> to <code>apiVersion: networking.k8s.io/v1</code>
so your file would look like this:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-serv
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/use-regex: &quot;true&quot;
spec:
  rules:
    - host: ticketing.dev
      http:
        paths:
          - pathType: Prefix
          - path: &quot;/api/users/?(.*)&quot;
            backend:
              service:
                name: auth-srv
                port:
                  number: 3000
</code></pre>
<p>Refer to <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#ingress-v1-networking-k8s-io" rel="nofollow noreferrer">this documentation</a>.</p>
