Install new CRDs and RBAC for Kube v1.16+
Yes, but because of the CRDs in Helm are managed by Rancher and not Traefik, and they were changed upstream,
The apiextensions.k8s.io/v1beta1
CustomResourceDefinition is deprecated in Kubernetes v1.16+ and will be removed in v1.22+. For Kubernetes v1.16+, please use the Traefik apiextensions.k8s.io/v1
CRDs instead.
You must install the new CRDs and RBAC's.
# Install Traefik Resource Definitions:
kubectl apply -f https://raw.githubusercontent.com/traefik/traefik/v2.10/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml
# Install RBAC for Traefik:
kubectl apply -f https://raw.githubusercontent.com/traefik/traefik/v2.10/docs/content/reference/dynamic-configuration/kubernetes-crd-rbac.yml
Upgrade Traefik
Then you can install the Traefik repos and upgrade Traefik,
helm repo add traefik https://traefik.github.io/charts
helm repo update
helm upgrade traefik traefik/traefik -n kube-system
Now you should see that the upgrade was complete,
❯ helm history traefik -n kube-system
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 Sun Aug 13 18:45:21 2023 superseded traefik-21.2.1+up21.2.0 v2.9.10 Install complete
2 Sun Aug 13 13:48:07 2023 deployed traefik-24.0.0 v2.10.4 Upgrade complete
Remove deprecated CRDs
Now you can optionally remove the traefik-crd
that Rancher provides, but because the crd's are versioned, you can just keep it too.
helm delete -n kube-system traefik-crd
HelmChartConfig
CRD. docs.k3s.io/…