rancher: [BUG] INSTALLATION FAILED: chart requires kubeVersion: < 1.27.0-0 which is incompatible with Kubernetes v1.27.4

Rancher Server Setup

  • Rancher version: latest
  • Installation option (Docker install/Helm Chart): Helm Charts
    • If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): k8s, Client Version: v1.28.2 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3, Server Version: v1.27.4
  • Proxy/Cert Details: cert-manager, I ran the following command to get the cert details but got an error that says this kubectl get secret sh.helm.release.v1.cert-manager.v1 -n cert-manager -o jsonpath='{.data.certificate}' | base64 --decode | openssl x509 -text Error is Could not read certificate from <stdin> Unable to load certificate

Information about the Cluster

  • Kubernetes version: Client Version: v1.28.2 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3, Server Version: v1.27.4
  • Cluster Type (Local/Downstream): Local k8s
    • If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider):

User Information

  • What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)
    • If custom, define the set of permissions: I bought mini pc to start a homelab so i decided it’s time for me to learn kubernetes and I’ll install and setup everything on my homelab with kurbernets and also using rancher to manage everything while learning so I just install docker and kurbenetes on my ubuntu server and the problem started with installing rancher with helm

Describe the bug

It just ask me to downgrade my kubernetes version before installing rancher and I do not want to because I will be using the kubernetes for many other things on this server This is the error I get Error: INSTALLATION FAILED: chart requires kubeVersion: < 1.27.0-0 which is incompatible with Kubernetes v1.27.4 To Reproduce

  1. installed docker from official website
  2. installed kubectl from official website
  3. install helm from official website
  4. helm install your-release-name rancher-latest/rancher
    –namespace cattle-system
    –set hostname=ndetacloud.sslip.io
    –set replicas=1
    –set bootstrapPassword=admin
    –wait helm install rancher rancher-latest/rancher
    –namespace cattle-system
    –set hostname=192.168.49.2.sslip.io
    –set replicas=1
    –set ‘bootstrapPassword=$8!zD#2vQy9LsP@1’ I used the above commands still the same error mentioned above Result

Expected Result

I just wanted a simple rancher ui to start learning Screenshots

Additional context

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 5
  • Comments: 44

Most upvoted comments

Please downgrade to v1.27.7 and you’re good to go.

Error: INSTALLATION FAILED: chart requires kubeVersion: < 1.27.0-0 which is incompatible with Kubernetes v1.28.3

Add --version 2.5.9 solved my issue.

@Ndeta100 can you try to downgrade your k8s version to 1.26?

Downgrading does work, but if that will be required on an ongoing basis, maybe it should be noted in docs here or here or in both places along with the downgrade procedure for K3S (or at least a link to the procedure).

Since K3S and Rancher are closely related, many will assume that latest Rancher should be deployable on latest K3S which is not the case (at least not following the official documentation).

My workaround was to download the latest helm chart and remove the kubeVersion restriction from Chart.yaml.

$ helm repo add rancher https://releases.rancher.com/server-charts/latest
$ helm repo update
$ helm pull rancher/rancher --untar 
# remove kubeVersion from Chart.yaml (https://github.com/rancher/rancher/blob/72f58378bf03122a9651c9bd3b4c143a57e8fdaa/chart/Chart.yaml#L6)
$ helm upgrade --install --create-namespace rancher ./rancher --namespace cattle-system

I can say that Rancher v2.8.0 works without problems with K3s v1.28.4+k3s2. At least for me.

I don’t think that a downgrade of k3s can be a solution for this. Please reopen!

There is a solution: Use a Dockerized Rancher! It’s easier to install.

docker run -d --privileged --restart=unless-stopped \
    -p 80:80 -p 443:443 \
    -v /path/to/rancher/data:/var/lib/rancher \
    rancher/rancher:latest

Error: INSTALLATION FAILED: chart requires kubeVersion: < 1.31.0-0 which is incompatible with Kubernetes v1.31.0

This is ridiculous . The GKE or EKS asks us to update and think about a situation we are using rancher in actual scenario . If we upgrade the cluster then rancher is rendered useless until the next fix comes out .

Currently -

Client Version: v1.29.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.7-gke.1026000

Error -

 chart requires kubeVersion: < 1.28.0-0 which is incompatible with Kubernetes v1.29.0 

So that means I canot use any version over 1.28.0 even it is a minor version upgrade ?

+1

@Ndeta100 This guide includes the downgrade procedure (replace k3s binary and restart):

https://ozgur-kolukisa.medium.com/installing-rancher-on-k3s-with-helm-charts-309bc7287240

The only caveat I ran into was that on agent nodes, I had to restart the node because the k3s service doesn’t run on them (or wasn’t running on mine at least). Not sure what the appropriate method of downgrading an agent is (I am also new to this).

Well you can (own Risk):

cd tmp
helm fetch rancher/rancher --untar
cd rancher
sed -i "/kubeVersion/d" Chart.yaml
helm upgrade rancher . --namespace cattle-system --set hostname=<yourhosthere>

Tested with 2.9.2 and Server Version: v1.31.1+rke2r1

image

Best Regards Uli

+1

$ helm template  rancher  rancher-stable/rancher --version v2.7.9
Error: chart requires kubeVersion: < 1.27.0-0 which is incompatible with Kubernetes v1.28.0

Use --debug flag to render out invalid YAML

+1

helm install rancher rancher-latest/rancher --namespace cattle-system

Error: INSTALLATION FAILED: chart requires kubeVersion: < 1.29.0-0 which is incompatible with Kubernetes v1.29.2+k3s1

I am new to K3S and rancher…I thought I would give this a try. I thought I was losing my mind why I couldn’t get this to work as a new install. Learning I have to downgrade to a previous version is a funny and very obvious thing I would need to do…definately not a bug /sarcasm.

buen dias / hello

I think o0-o is correct. The latest Kubernetes was released yesterday and Rancher is even certified on 1.28 yet. According to https://kubernetes.io/releases/

Although with the 2.8.0 release last week, maybe documentation just hasn’t caught up https://github.com/rancher/rancher/releases/tag/v2.8.0

rgds sanj

@jakubauskas Ran into the same issue. I had to take one of my 8 nodes and turn it into just a Docker system and installed Rancher on that. Then imported the new RKE2 cluster to it.

chart requires kubeVersion: < 1.27.0-0 which is incompatible with Kubernetes v1.28.3+rke2r2

Doesn’t seem to make sense to downgrade my RKE2 to get rancher installed. and I do agree with the other posters that we seem to have a disconnect. I might try using the lower version just to see.

EDIT: Attempted 2.5.9 and that failed to install (crashloop). Look like I have no choice but to rebuild the cluster with an older version.

any update about this problem?

Sorry I closed the issue because we did not have a concrete solution but it’s open now because I still face the same problem as well trying to build a homelab

You closed this because you DIDNT have a solution? thats about as backwards as it gets. Another vote here for rancher and k3s syncing to both have latest mnatch latest. this is a great way to waste a lot of time otherwise.

K3s and Rancher are developed independently. It is not guaranteed that latest Rancher will work with latest K3s.

and they are both developed by Suse which makes this even more bizarre that they wouldnt have a better grasp of how unintuitive that this currently is.

Same on my side. Error: INSTALLATION FAILED: chart requires kubeVersion: < 1.27.0-0 which is incompatible with Kubernetes v1.28.3

Error: INSTALLATION FAILED: chart requires kubeVersion: < 1.27.0-0 which is incompatible with Kubernetes v1.27.7+k3s2

Same issue here