I’ve done quite a bit of searching on this, but have found no solution so far. Here’s what is happening:
- New Rancher (2.7.3) install on RPI
- Manual GitRepo (“rancher”) configured for fleet-local
- “rancher” Git repo has another GitRepo (“vault”) configured for HashiCorp Vault
- Rancher reads GitRepo rancher, finds GitRepo resource for “vault” gitrep
- The fleet.yaml in the vault repo references the HashiCorp Vault chart
- During deployment, I get "Chart requires kubeVersion: >= 1.22.0-0 which is incompatible with Kubernetes v1.20.0 "
- Kubernetes version is 1.25 (v1.25.10+k3s1)
- Helm is reported as (v2.16.8-rancher2) in Rancher | About
- In Kubectl shell I was getting kubectl version showing kubectl as 1.21 or something. This is not strictly compatible, because Kubernetes is 1.25, and you should use ± 1 version at most, so it should be at least 1.24. It was using rancher/shell:v0.1.19 so I upgraded rancher/shell to v0.1.20-rc1 using something I found on the Internet. It now reports:
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:“1”, Minor:“24”, GitVersion:“v1.24.13”, GitCommit:“49433308be5b958856b6949df02b716e0a7cf0a3”, GitTreeState:“clean”, BuildDate:“2023-04-12T12:15:50Z”, GoVersion:“go1.19.8”, Compiler:“gc”, Platform:“linux/arm64”}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:“1”, Minor:“25”, GitVersion:“v1.25.10+k3s1”, GitCommit:“613a3bc8cba42273946c52d3ed3df516d8f6ae34”, GitTreeState:“clean”, BuildDate:“2023-05-26T22:40:22Z”, GoVersion:“go1.19.9”, Compiler:“gc”, Platform:“linux/arm64”}
- in the kubectl shell, helm reports:
version.BuildInfo{Version:“v3.11.3-rancher1”, GitCommit:“8853d6f9875eb3138d10f4af7a4a67130039e28b”, GitTreeState:“clean”, GoVersion:“go1.19.4”}
So I have no idea why Rancher/Fleet thinks the cluster is v1.20.0, when it is clearly 1.25.10. Here’s the full error :
ErrApplied(1) [Bundle vault-vault: chart requires kubeVersion: >= 1.22.0-0 which is incompatible with Kubernetes v1.20.0]; NotReady(1) [Bundle rancher-rancher]; gitrepo.fleet.cattle.io fleet-local/vault [progressing,error] chart requires kubeVersion: >= 1.22.0-0 which is incompatible with Kubernetes v1.20.0, ErrApplied(1) [Bundle vault-vault: chart requires kubeVersion: >= 1.22.0-0 which is incompatible with Kubernetes v1.20.0]
If anyone has any suggestions it would be much appreciated!