# Error with "okteto.yaml": no matches for kind "Ingress"

**URL:** <https://community.okteto.com/t/error-with-okteto-yaml-no-matches-for-kind-ingress/254>\
**Category:** Help\
**Created:** [September 15, 2022, 9:52am UTC](https://community.okteto.com/t/error-with-okteto-yaml-no-matches-for-kind-ingress/254 "2022-09-15T09:52:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mscarceller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/mscarceller/32/166_2.png) [@mscarceller](https://community.okteto.com/u/mscarceller)\
**Post date:** [September 15, 2022, 9:52am UTC](https://community.okteto.com/t/error-with-okteto-yaml-no-matches-for-kind-ingress/254/1 "2022-09-15T09:52:55Z")

</div>

I have this error during deploy:

k8s/okteto.yaml": no matches for kind “Ingress” in version "[networking.k8s.io/v1beta1](http://networking.k8s.io/v1beta1)

```auto
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: xxxxxxx-ingress
  namespace: yyyyyyyy
  annotations:
    dev.okteto.com/generate-host: "true"
spec:
  rules:
  - host: zzzzzzzz-yyyyyyyy.cloud.okteto.net
    http:
      paths:
        - path: /
          backend:
            serviceName: service-web      
            servicePort: 8080
        - path: /api
          backend:
            serviceName: service-api     
            servicePort: 8080
        - path: /db
          backend:
            serviceName: mysqldb     
            servicePort: 3306

```

---

<div class="post-metadata">

**Author:** ![AgustinRamiroDiaz](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/agustinramirodiaz/32/34_2.png) [@AgustinRamiroDiaz](https://community.okteto.com/u/AgustinRamiroDiaz)\
**Post date:** [September 15, 2022, 10:36am UTC](https://community.okteto.com/t/error-with-okteto-yaml-no-matches-for-kind-ingress/254/2 "2022-09-15T10:36:45Z")

</div>

> [@mscarceller](#):
>
> no matches for kind “Ingress” in version "[networking.k8s.io/v1beta1](http://networking.k8s.io/v1beta1)

Hi mscarceller!

In which cluster are you running this? Is it a custom cluster or [cloud.okteto.com](http://cloud.okteto.com)?

Kubernetes has deprecated `networking.k8s.io/v1beta1` in favor of `networking.k8s.io/v1`, changing that should solve your issue. ([k8s info](https://kubernetes.io/docs/reference/using-api/deprecation-guide/#ingressclass-v122))

This error might happen to you since [cloud.okteto.com](http://cloud.okteto.com) has been upgraded to k8s 1.23

---

<div class="post-metadata">

**Author:** ![mscarceller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/mscarceller/32/166_2.png) [@mscarceller](https://community.okteto.com/u/mscarceller)\
**Post date:** [September 15, 2022, 10:54am UTC](https://community.okteto.com/t/error-with-okteto-yaml-no-matches-for-kind-ingress/254/3 "2022-09-15T10:54:36Z")

</div>

I’m using [cloud.okteto.com](http://cloud.okteto.com)  
If i change to [networking.k8s.io/v1](http://networking.k8s.io/v1) i get this error:

```auto
error executing command 'kubectl apply -f k8s/okteto.yaml': exit status 1

```

thanks

---

<div class="post-metadata">

**Author:** ![mscarceller](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/mscarceller/32/166_2.png) [@mscarceller](https://community.okteto.com/u/mscarceller)\
**Post date:** [September 15, 2022, 11:38am UTC](https://community.okteto.com/t/error-with-okteto-yaml-no-matches-for-kind-ingress/254/4 "2022-09-15T11:38:54Z")

</div>

I got it 😀

```auto
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: xxxxxxxxx-ingress
  namespace: yyyyyyyyy
  annotations:
    dev.okteto.com/generate-host: "true"
spec:
  rules:
  - host: xxxxxxxxx-yyyyyyyyy.cloud.okteto.net
    http:
      paths:
        - path: /
          pathType: Prefix
          backend:
            service:
              name: service-web      
              port: 
                number: 8080
        - path: /api
          pathType: Prefix
          backend:
            service:
              name: service-api     
              port: 
                number: 8080
        - path: /db
          pathType: Prefix
          backend:
            service:
              name: mysqldb     
              port: 
                number: 3306

```

Thanks @AgustinRamiroDiaz
