Rancher Cluster is being upgraded
Posted catoop
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Rancher Cluster is being upgraded相关的知识,希望对你有一定的参考价值。
如题,出现这个问题大概率就是在单机版 docker 运行的 rancher 上手贱进行了升级操作后导致的吧(哈哈)
官方给的说法中:docker 版的 rancher 是不能升级的,因为之前的版本官方并没有堵死这个操作,所以我们就能干啊。但是实际上操作了就会出错的,所以在后来的版本中 docker 版 rancher 不能做这个操作了。
但是问题已经出现了,咋办呢?以下是操作步骤,拷贝自官方的 issue,文后给出官方链接。
- Go to your local cluster
- Go to Edit cluster
- Set control plane concurrency and Worker concurrency to 1
- Press save
- Now you should be back at your local cluster
- Go to View in API
- In the top right corner of the API click on Edit
- Edit the value of k3sConfig and set it to
"k3supgradeStrategy":"drainServerNodes":false,"drainWorkerNodes":false,"serverConcurrency":1,"type":"/v3/schemas/clusterUpgradeStrategy","workerConcurrency":1,"kubernetesVersion":"v1.18.8+k3s1","type":"/v3/schemas/k3sConfig"
. (Or the version your k3s version used to be, you can still see the old version on the Dashboard). - Click Show Request
- Click on Send Request
- You should get a HTTP response 200
总结一下就是:手工通过API接口,将版本号修改还原为原来的版本号
。
官方链接:https://github.com/rancher/rancher/issues/29966
(END)
以上是关于Rancher Cluster is being upgraded的主要内容,如果未能解决你的问题,请参考以下文章
Rancher 创建 RKE2 集群,日志错误:system-default-registry: registries must be valid RFC 3986 URI
Rancher 创建 RKE2 集群,日志错误:system-default-registry: registries must be valid RFC 3986 URI
centos7系统部署rancher2.x,并创建k8s集群
cluster may be unhealthy: failed to list members
rancher-webhook x509: certificate has expired or is not yet valid