Daskhub helm chart fails with K8 v1.21.12-gke.1700

When i try to deploy the latest version of daskhub using helm in GKE , getting the below error

command :
helm upgrade --wait --install --dry-run --debug --render-subchart-notes --version 2022.6.0 dhub dask/daskhub --namespace=dhub --values=secrets.yaml --values=config.yaml

error

`install.go:190: [debug] WARNING: This chart or one of its subcharts contains CRDs. Rendering may fail or contain inaccuracies.
Error: unable to build kubernetes objects from release manifest: [unable to recognize "": no matches for kind "IngressRoute" in version "traefik.containo.us/v1alpha1", unable to recognize "": no matches for kind "Middleware" in version "traefik.containo.us/v1alpha1"]
helm.go:81: [debug] [unable to recognize "": no matches for kind "IngressRoute" in version "traefik.containo.us/v1alpha1", unable to recognize "": no matches for kind "Middleware" in version "traefik.containo.us/v1alpha1"]
unable to build kubernetes objects from release manifest
helm.sh/helm/v3/pkg/action.(*Install).Run
        /home/circleci/helm.sh/helm/pkg/action/install.go:258
main.runInstall
        /home/circleci/helm.sh/helm/cmd/helm/install.go:242
main.newUpgradeCmd.func2
        /home/circleci/helm.sh/helm/cmd/helm/upgrade.go:115
github.com/spf13/cobra.(*Command).execute
        /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:850
github.com/spf13/cobra.(*Command).ExecuteC
        /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958
github.com/spf13/cobra.(*Command).Execute
        /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895
main.main
        /home/circleci/helm.sh/helm/cmd/helm/helm.go:80
runtime.main
        /usr/local/go/src/runtime/proc.go:204
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1374`

@consideRatio do you have any thoughts on this?

Iā€™m not sure whats going on, but I suspect that the chart was already installed in an older version, and now a new version was attempted to be installed without manually upgrading the CRDs that only installs by helm in the initial install.

The dask-gateway changelog for 2022.4.0 clarifies what needs to be done with regards to those CRDs, but it may be relevant to read up on other notes if upgrading as well: Changelog ā€” Dask Gateway 2022.6.1 documentation

# you can also replace 2022.4.0 here with the version you install
# so 2022.6.0, but they haven't changed since 2022.4.0 and 2022.6.1
# I think.
kubectl apply -f https://raw.githubusercontent.com/dask/dask-gateway/2022.4.0/resources/helm/dask-gateway/crds/daskclusters.yaml
kubectl apply -f https://raw.githubusercontent.com/dask/dask-gateway/2022.4.0/resources/helm/dask-gateway/crds/traefik.yaml
1 Like