• 开发Kubernetes
  • kubekey update kubernetes the target version v1.24.16 is not supported

创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。

操作系统信息
例如:虚拟机/物理机,Centos7.5/Ubuntu18.04,4C/8G

Kubernetes版本信息
1.23.2

容器运行时
v24.0.5

KubeSphere版本信息
3.4.1

问题是什么
报错日志是什么,最好有截图。

[upgrade] FYI: You can look at this config file with ‘kubectl -n kube-system get cm kubeadm-config -o yaml’

W0718 19:51:16.021259 7953 utils.go:69] The recommended value for “clusterDNS” in “KubeletConfiguration” is: [192.168.0.10]; the provided value is: [169.254.25.10]

[preflight] Running pre-flight checks

[preflight] Skipping prepull. Not a control plane node.

[upgrade] Skipping phase. Not a control plane node.

[kubelet-start] Writing kubelet configuration to file “/var/lib/kubelet/config.yaml”

[upgrade] The configuration for this node was successfully updated!

[upgrade] Now you should go ahead and upgrade the kubelet package using your package manager.

19:51:34 CST stdout: [bj11-bcld-k8s04.bcld.com]

[upgrade] Reading configuration from the cluster…

[upgrade] FYI: You can look at this config file with ‘kubectl -n kube-system get cm kubeadm-config -o yaml’

W0718 19:51:34.182974 61011 utils.go:69] The recommended value for “clusterDNS” in “KubeletConfiguration” is: [192.168.0.10]; the provided value is: [169.254.25.10]

[preflight] Running pre-flight checks

[preflight] Skipping prepull. Not a control plane node.

[upgrade] Skipping phase. Not a control plane node.

[kubelet-start] Writing kubelet configuration to file “/var/lib/kubelet/config.yaml”

[upgrade] The configuration for this node was successfully updated!

[upgrade] Now you should go ahead and upgrade the kubelet package using your package manager.

19:51:47 CST stdout: [bj11-bcld-k8s05.bcld.com]

[upgrade] Reading configuration from the cluster…

[upgrade] FYI: You can look at this config file with ‘kubectl -n kube-system get cm kubeadm-config -o yaml’

W0718 19:51:47.145864 46089 utils.go:69] The recommended value for “clusterDNS” in “KubeletConfiguration” is: [192.168.0.10]; the provided value is: [169.254.25.10]

[preflight] Running pre-flight checks

[preflight] Skipping prepull. Not a control plane node.

[upgrade] Skipping phase. Not a control plane node.

[kubelet-start] Writing kubelet configuration to file “/var/lib/kubelet/config.yaml”

[upgrade] The configuration for this node was successfully updated!

[upgrade] Now you should go ahead and upgrade the kubelet package using your package manager.

19:51:59 CST success: [bj11-bcld-k8s03.bcld.com]

19:51:59 CST success: [bj11-bcld-k8s04.bcld.com]

19:51:59 CST success: [bj11-bcld-k8s05.bcld.com]

19:51:59 CST [ProgressiveUpgradeModule ½] Reconfigure CoreDNS

19:51:59 CST stdout: [bj11-bcld-k8s01.bcld.com]

deployment.apps/coredns patched (no change)

19:51:59 CST stdout: [bj11-bcld-k8s01.bcld.com]

service “kube-dns” deleted

19:52:01 CST stdout: [bj11-bcld-k8s01.bcld.com]

service/coredns unchanged

Warning: resource clusterroles/system:coredns is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create –save-config or kubectl apply. The missing annotation will be patched automatically.

clusterrole.rbac.authorization.k8s.io/system:coredns configured

19:52:02 CST stdout: [bj11-bcld-k8s01.bcld.com]

Error from server (NotFound): services “kube-dns” not found

19:52:03 CST stdout: [bj11-bcld-k8s01.bcld.com]

service/coredns unchanged

clusterrole.rbac.authorization.k8s.io/system:coredns unchanged

19:52:04 CST stdout: [bj11-bcld-k8s01.bcld.com]

Warning: resource serviceaccounts/nodelocaldns is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create –save-config or kubectl apply. The missing annotation will be patched automatically.

serviceaccount/nodelocaldns configured

daemonset.apps/nodelocaldns configured

19:52:05 CST success: [bj11-bcld-k8s01.bcld.com]

19:52:05 CST skipped: [bj11-bcld-k8s02.bcld.com]

19:52:05 CST [ProgressiveUpgradeModule ½] Set current k8s version

19:52:05 CST success: [LocalHost]

19:52:05 CST [ProgressiveUpgradeModule ½] Calculate next upgrade version

19:52:05 CST message: [LocalHost]

calculate next version failed: the target version v1.24.16 is not supported

19:52:05 CST failed: [LocalHost]

error: Pipeline[UpgradeClusterPipeline] execute failed: Module[ProgressiveUpgradeModule ½] exec failed:

failed: [LocalHost] [CalculateNextVersion] exec failed after 1 retries: calculate next version failed: the target version v1.24.16 is not supported

10 天 后

将容器运行时docker 更换为containerd 同样问题。