如何查看k8s版本

使用kubectl version 命令即可查看
 

[root@node6 ~]# kubectl version
Client Version: v1.28.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
The connection to the server localhost:8080 was refused - did you specify the right host or port?
[root@node6 ~]#

输出信息详解:

client代表kubectl版本信息