gpt4 book ai didi

kubernetes - Kubernetes版本已升级,但kubectl显示不同版本

转载 作者:行者123 更新时间:2023-12-02 11:56:54 25 4
gpt4 key购买 nike

我刚刚升级了kubernetes集群,但是kubectl在向我显示版本时非常不一致。我该如何验证。有真相吗?

[iahmad@web-prod-ijaz001 k8s-test]$ kubectl  version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-06T01:44:30Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-06T01:36:19Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}


[iahmad@web-prod-ijaz001 k8s-test]$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
wp-np3-0b Ready worker 55d v1.14.1
wp-np3-0f Ready worker 55d v1.14.1
wp-np3-45 Ready master 104d v1.13.5
wp-np3-46 Ready worker 104d v1.13.5
wp-np3-47 Ready worker 104d v1.13.5
wp-np3-48 Ready worker 43d v1.14.1
wp-np3-49 Ready worker 95d v1.13.5
wp-np3-76 Ready worker 55d v1.14.1
[iahmad@web-prod-ijaz001 k8s-test]$

最佳答案

IIRC:kubectl version告诉您APIServer的版本是(1.14.3)。 kubectl get nodes告诉您这些节点上的kubelet是哪个版本。

关于kubernetes - Kubernetes版本已升级,但kubectl显示不同版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57061204/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com