# K8 CRD issues after doing helm install with latest

**URL:** https://community.traefik.io/t/k8-crd-issues-after-doing-helm-install-with-latest/20549
**Category:** Traefik v2
**Tags:** kubernetes-crd
**Created:** [November 23, 2023, 12:14am UTC](https://community.traefik.io/t/k8-crd-issues-after-doing-helm-install-with-latest/20549 "2023-11-23T00:14:42Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![chrispward](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@chrispward](https://community.traefik.io/u/chrispward)
#### Post date: [November 23, 2023, 12:14am UTC](https://community.traefik.io/t/k8-crd-issues-after-doing-helm-install-with-latest/20549/1 "2023-11-23T00:14:42Z")

</div>

Short version.. Installed latest v2 with helm on k8 (1.23.8).  
kubectl get ingressroutes --all-namespaces shows nothing. Same for middleware etc.  
i know from the helm chart output it created the dashboard ingress route. i can access the dashboard and i see there is a route and its a crd.

if i apply a chart but change the api to use [traefik.containo.us/v1alpha1](http://traefik.containo.us/v1alpha1), it will create the ingress route and will show up when I do a get.  
The issue is that the existing route is still there somewhere. I tried apply changes to the route with api (ie added basic auth to dashboard etc) and it wont recognise the changes etc.

Basically, seems to be an issue with how the crd's are using the api.

I backed out and installed version 22.3.0. Works correctly immediately.  
Installing 23.x and ingressroute it stops working. Its something to do with the CRDS change and how the api's a referenced.

Its very frustrating...  
Any help would be great.

I can provide the outputs from helm during install etc if it helps.  
(fyi. I even tried install v3 hoping all the crd rename changes were done and it would be fixed.. same issue)..  
tx

---

<div class="post-metadata">

### Author: ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)
#### Post date: [November 23, 2023, 7:19am UTC](https://community.traefik.io/t/k8-crd-issues-after-doing-helm-install-with-latest/20549/2 "2023-11-23T07:19:10Z")

</div>

If you consider this a real bug, you can open an issue on Traefik Github ([link](https://github.com/traefik/traefik)).

---

<div class="post-metadata">

### Author: ![nicomengin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/nicomengin/32/5507_2.png) [@nicomengin](https://community.traefik.io/u/nicomengin)
#### Post date: [November 23, 2023, 1:22pm UTC](https://community.traefik.io/t/k8-crd-issues-after-doing-helm-install-with-latest/20549/3 "2023-11-23T13:22:24Z")

</div>

Hello @chrispward,

From what I understand the issue seems to come from the Helm Chart.  
I recommend opening an issue on the [Traefik Helm Chart repository](https://github.com/traefik/traefik-helm-chart/) instead of the Traefik one

---

<div class="post-metadata">

### Author: ![mloiseleur](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/mloiseleur/32/4987_2.png) [@mloiseleur](https://community.traefik.io/u/mloiseleur)
#### Post date: [November 23, 2023, 1:33pm UTC](https://community.traefik.io/t/k8-crd-issues-after-doing-helm-install-with-latest/20549/4 "2023-11-23T13:33:41Z")

</div>

It's related to CRD change, yes.

Starting with Traefik Proxy v2.10, CRDs are supported on two API Groups: `ingressroute.traefik.io` and `ingressroute.containo.us`.

Traefik Helm Chart v23 introduced support of Traefik Proxy v2.10.

With those versions, `kubectl get ingressroutes --all-namespaces` give the feeling it does not work, but in fact, it's just requesting `ingressroute.containo.us`.

When specifying full API group:

```bash
kubectl get ingressroute.traefik.io --all-namespaces

```

One can see all `Ingressroute` using `traefik.io` API Group.

On the Chart, we have discussed about how to fix it, see [Allow an easy way to disable legacy CRDs in Helm chart · Issue #895 · traefik/traefik-helm-chart · GitHub](https://github.com/traefik/traefik-helm-chart/issues/895)  
FTM, it's not possible : Traefik Proxy v2.10 does not start without CRDs on both API Groups.  
=\> We have reverted the change: [revert: "fix: 🐛 remove old CRDs using traefik.containo.us" by mloiseleur · Pull Request #944 · traefik/traefik-helm-chart · GitHub](https://github.com/traefik/traefik-helm-chart/pull/944)

We should be able to finish the transition with Traefik v3.

---

<div class="post-metadata">

### Author: ![chrispward](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@chrispward](https://community.traefik.io/u/chrispward)
#### Post date: [November 28, 2023, 4:47pm UTC](https://community.traefik.io/t/k8-crd-issues-after-doing-helm-install-with-latest/20549/5 "2023-11-28T16:47:27Z")

</div>

Thanks. Following your links and this solved the issue.

After a little clean up.  
(I was able to see both ingressroutes with the kubectl get [ingressroute.traefik.io](http://ingressroute.traefik.io) and kubectl get ingressroute so I deleted the ones that were using [ingressroute.containo.us](http://ingressroute.containo.us) 1st.)

This solved the issue for me  
kubectl get crd | grep '[traefik.containo.us](http://traefik.containo.us)' | awk '{ print $1 }' | xargs kubectl delete crd  
kubectl get [ingressroute.traefik.io](http://ingressroute.traefik.io) --all-namespaces  
kubectl get ingressroute --all-namespaces

Thanks for your help. This had been driving me nuts..

---

<div class="post-metadata">

### Author: ![chrispward](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@chrispward](https://community.traefik.io/u/chrispward)
#### Post date: [November 28, 2023, 5:43pm UTC](https://community.traefik.io/t/k8-crd-issues-after-doing-helm-install-with-latest/20549/6 "2023-11-28T17:43:02Z")

</div>

Ah... just restarted the traefik pod and its now getting errors.

failed to list \*v1alpha1.Middleware: the server could not find the requested resource (get [middlewares.traefik.containo.us](http://middlewares.traefik.containo.us))  
failed to list \*v1alpha1.IngressRoute: the server could not find the requested resource (get [ingressroutes.traefik.containo.us](http://ingressroutes.traefik.containo.us))  
list \*v1alpha1.TLSStore: the server could not find the requested resource (get [tlsstores.traefik.containo.us](http://tlsstores.traefik.containo.us))

---

<div class="post-metadata">

### Author: ![mloiseleur](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/mloiseleur/32/4987_2.png) [@mloiseleur](https://community.traefik.io/u/mloiseleur)
#### Post date: [November 29, 2023, 7:38am UTC](https://community.traefik.io/t/k8-crd-issues-after-doing-helm-install-with-latest/20549/7 "2023-11-29T07:38:38Z")

</div>

FTM, Traefik Proxy cannot start without **both** [traefik.io](http://traefik.io) and [traefik.containo.us](http://traefik.containo.us) CRDs.

---

<div class="post-metadata">

### Author: ![chrispward](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@chrispward](https://community.traefik.io/u/chrispward)
#### Post date: [November 29, 2023, 3:44pm UTC](https://community.traefik.io/t/k8-crd-issues-after-doing-helm-install-with-latest/20549/8 "2023-11-29T15:44:36Z")

</div>

yeah. I reinstalled the crds. It started working but then the get ingressroutes etc defaults to using the traefik\_containo\_us apis

What I'm finding is that if I do...

`kubectl get ingressroute_traefik_io --all-namespaces`  
and same for the other resources (middleware etc)  
it then reverts to using the [ingressroute.traefik.io](http://ingressroute.traefik.io) when doing kubectl get ingressroutes etc..

Sort of a work around for now until we upgrade to r3 when its ready.
