"kubectl get all --all-namespaces" 对同一个集群有不同的输出
"kubectl get all --all-namespaces" has different output against the same cluster
所以当我 运行 kubectl get all --all-namespaces
在不同的机器上,我得到不同的输出,我不明白为什么。
第一台机器(为简洁起见修剪了输出):
kube-system po/kubernetes-dashboard-5569448c6d-w2bdb 1/1 Running 0 16h
kube-system po/service-mesh-traefik-5bb8d58bf6-gfdqd 1/1 Running 0 2d
kube-system po/tiller-deploy-78d74d4979-rh7nv 1/1 Running 0 23h
第二台机器:
kube-system kubernetes-dashboard-5569448c6d-w2bdb 1/1 Running 0 16h
kube-system service-mesh-traefik-5bb8d58bf6-gfdqd 1/1 Running 0 2d
kube-system tiller-deploy-78d74d4979-rh7nv 1/1 Running 0 23h
理想情况下,我想要第一台机器的输出,资源类型作为输出的前缀。试图在没有它的情况下理解 get all
的输出是非常令人沮丧的,并且由于我正在搜索的单词的性质,尝试使用 Google 搜索 [=25 更令人沮丧=].
有什么不同?集群是一样的,所以它应该返回相同的数据。第一台机器是 kubectl 版本 1.9.2,第二台机器是 1.10.0。集群是 运行ning 1.8.7.
答案就在你上面提到的细节中。 kubectl 版本的差异在两台机器之间以不同的输出格式显示。
所以当我 运行 kubectl get all --all-namespaces
在不同的机器上,我得到不同的输出,我不明白为什么。
第一台机器(为简洁起见修剪了输出):
kube-system po/kubernetes-dashboard-5569448c6d-w2bdb 1/1 Running 0 16h
kube-system po/service-mesh-traefik-5bb8d58bf6-gfdqd 1/1 Running 0 2d
kube-system po/tiller-deploy-78d74d4979-rh7nv 1/1 Running 0 23h
第二台机器:
kube-system kubernetes-dashboard-5569448c6d-w2bdb 1/1 Running 0 16h
kube-system service-mesh-traefik-5bb8d58bf6-gfdqd 1/1 Running 0 2d
kube-system tiller-deploy-78d74d4979-rh7nv 1/1 Running 0 23h
理想情况下,我想要第一台机器的输出,资源类型作为输出的前缀。试图在没有它的情况下理解 get all
的输出是非常令人沮丧的,并且由于我正在搜索的单词的性质,尝试使用 Google 搜索 [=25 更令人沮丧=].
有什么不同?集群是一样的,所以它应该返回相同的数据。第一台机器是 kubectl 版本 1.9.2,第二台机器是 1.10.0。集群是 运行ning 1.8.7.
答案就在你上面提到的细节中。 kubectl 版本的差异在两台机器之间以不同的输出格式显示。