Can't install traefik v3.6.2 on DOKS 1.34.1-do.0

HI,

When I try to install traefik 3.6.2 via helm I have the following error:

Error: INSTALLATION FAILED: failed to install CRD crds/gateway-standard-install.yaml: conflict occurred while applying object /referencegrants.gateway.networking.k8s.io apiextensions.k8s.io/v1, Kind=CustomResourceDefinition: Apply failed with 2 conflicts: conflicts with "c3":

  • .metadata.annotations.gateway.networking.k8s.io/bundle-version
  • .spec.versions
    conflict occurred while applying object /gatewayclasses.gateway.networking.k8s.io apiextensions.k8s.io/v1, Kind=CustomResourceDefinition: Apply failed with 2 conflicts: conflicts with "c3":
  • .metadata.annotations.gateway.networking.k8s.io/bundle-version
  • .spec.versions
    conflict occurred while applying object /grpcroutes.gateway.networking.k8s.io apiextensions.k8s.io/v1, Kind=CustomResourceDefinition: Apply failed with 2 conflicts: conflicts with "c3":
  • .metadata.annotations.gateway.networking.k8s.io/bundle-version
  • .spec.versions
    conflict occurred while applying object /gateways.gateway.networking.k8s.io apiextensions.k8s.io/v1, Kind=CustomResourceDefinition: Apply failed with 2 conflicts: conflicts with "c3":
  • .metadata.annotations.gateway.networking.k8s.io/bundle-version
  • .spec.versions
    conflict occurred while applying object /httproutes.gateway.networking.k8s.io apiextensions.k8s.io/v1, Kind=CustomResourceDefinition: Apply failed with 2 conflicts: conflicts with "c3":
  • .metadata.annotations.gateway.networking.k8s.io/bundle-version
  • .spec.versions

Can you help me please ?

Best regards.

Using DOKS?

Hi using digitalocean kubernetes doks.

[removed by mod]

I had a similar issue with a local K8s cluster, in my case the cluster was a k3d/k3s cluster for testing, the issue was that the traefik ingressclass was already defined and owned by kube-system so Helm wasn’t able to install a new one, that’s where the conflict came from.

To verify if you run:

kubectl get ingressclass traefik -o yaml

you would get in the output something like:

metadata:
  annotations:
    ingressclass.kubernetes.io/is-default-class: "true"
    meta.helm.sh/release-name: traefik
    meta.helm.sh/release-namespace: kube-system

I guess in your case it’s c3 that owns it.

In order to fix this either destroy/re-create the cluster without the c3 owned traefik or you can delete the existing ingressclass then try again

kubectl delete ingressclass traefik
1 Like