K8S-组件版本查看
136 words
One minute
views
ingress-nginx
1
2
3
| kubectl -n ingress-nginx get deployments.apps ingress-nginx-controller-nginx -o jsonpath='{.spec.template.spec.containers[0].image}' && echo
>> swr.cn-east-2.myhuaweicloud.com/kuboard-dependency/ingress-nginx:v1.0.0
|
1
2
3
| kubectl -n ingress-nginx get deployments.apps ingress-nginx-controller-nginx -o jsonpath='{.metadata.labels.app\.kubernetes\.io\/version}' && echo
>> 1.0.0
|
calico
1
2
3
| kubectl -n calico-system get deployment calico-kube-controllers -o jsonpath='{.spec.template.spec.containers[0].image}' && echo
>> docker.io/calico/kube-controllers:v3.29.1
|
kubernetesVersion
1
2
3
| kubectl -n kube-system get cm kubeadm-config -o jsonpath='{.data.ClusterConfiguration}' | grep kubernetesVersion
>> kubernetesVersion: v1.31.3
|
kubectl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| kubectl version -o yaml
>>>
clientVersion:
buildDate: "2024-11-19T13:51:52Z"
compiler: gc
gitCommit: c83cbee114ddb732cdc06d3d1b62c9eb9220726f
gitTreeState: clean
gitVersion: v1.31.3
goVersion: go1.22.8
major: "1"
minor: "31"
platform: linux/amd64
kustomizeVersion: v5.4.2
serverVersion:
buildDate: "2024-11-19T13:48:20Z"
compiler: gc
gitCommit: c83cbee114ddb732cdc06d3d1b62c9eb9220726f
gitTreeState: clean
gitVersion: v1.31.3
goVersion: go1.22.8
major: "1"
minor: "31"
platform: linux/amd64
|