简体   繁体   中英

How to update CRD object for Traefik in Kubernetes

I'm currently trying to setup a Kube.netes/K3s deployment according to the following manual ( https://github.com/ct-Open-Source/team-container ). Unfortunately I get an error during the installation of Traefik through Helm.

-> Error: INSTALLATION FAILED: failed to install CRD crds/traefik-crds.yaml: unable to recognize "": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"

From my understanding the error is related to the different Kube.netes releases. My current cluster is running kubelet version v1.22.7+k3s1.

Can anybody help or advise me, how to handle this error? Thanks for your help.

"apiextensions.k8s.io/v1beta1" has been removed in K8s 1.22, you need to use a newer version of traefik, which uses apiextensions/v1. Helm chart version greater than 10 is supporting k8s 1.22:

Try this one: helm install traefik/traefik --version 10.6.2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM