环境描述:测试集群升级,一主一从,centos 7
原k8s集群 v1.27.7
目标k8s集群版本:v1.30.5
升级过程:
v1.27.7
sealos version 4.3.7
sealos gen xxx.ud.cn/srsselop/srdeedevsdasdaease-docker-local/kubernetes:v1.27.7 xxx.ud.cnud.cn/srdeedevelop/srdeedevelop-test-release-docker-local/helm:v3.8.2 xxx.ud.cnud.cn/srdeedevelop/srdeedevelop-test-release-docker-local/calico:v3.24.1 –masters 10.11.0.xx2 –nodes 10.11.0.xx7 –output sealos-cluster-file.yaml
yq -i ‘.Networking.PodSubnet=“xxx.64.0.0/18”’ sealos-cluster-file.yaml
yq -i ‘.Networking.ServiceSubnet=“xx.96.0.0/18”’ sealos-cluster-file.yaml
sealos apply -f sealos-cluster-file.yaml
部署v1.27.7 部署成功
升级到1.28.1
升级sealos 到5.0.1
再执行
sealos run xxx.ud.cnud.cn/srdeedevelop/srdeedevelop-test-release-docker-local/kubernetes:v1.28.1
升级成功
升级到1.29.1
sealos run xxx.ud.cnud.cn/srdeedevelop/srdeedevelop-test-release-docker-local/kubernetes:v1.29.1
升级成功
升级到1.30.5 (1.30.0)版本时报错
sealos run xxx.ud.cnud.cn/srdeedevelop/srdeedevelop-test-release-docker-local/kubernetes:v1.30.0
[config/images] Pulled registry.k8s.io/kube-apiserver:v1.30.0
[config/images] Pulled registry.k8s.io/kube-controller-manager:v1.30.0
[config/images] Pulled registry.k8s.io/kube-scheduler:v1.30.0
[config/images] Pulled registry.k8s.io/kube-proxy:v1.30.0
[config/images] Pulled registry.k8s.io/coredns/coredns:v1.11.3
[config/images] Pulled registry.k8s.io/pause:3.9
[config/images] Pulled registry.k8s.io/etcd:3.5.15-0
can not mix ‘–config’ with arguments [certificate-renewal yes]
To see the stack trace of this error execute with –v=5 or higher
2025-06-20T14:18:26 error upgrade cluster failed
Error: exit status 1

liuxiangyang-k8s 为什么给我影藏?