当前位置: 首页 > 工具软件 > kubectl-debug > 使用案例 >

kubectl nginx error debug

陶唯
2023-12-01

[root@master001 ~]# kubectl get all -n test
NAME             READY   STATUS    RESTARTS   AGE
pod/nginx-test   1/1     Running   0          200d
[root@master001 ~]# 
[root@master001 ~]# 
[root@master001 ~]# 
[root@master001 ~]# kubectl get pod nginx-test -n text
Error from server (NotFound): namespaces "text" not found
[root@master001 ~]# kubectl get pod nginx-test -n test
NAME         READY   STATUS    RESTARTS   AGE
nginx-test   1/1     Running   0          200d
[root@master001 ~]# kubectl -n test get pod nginx-test -o wide
NAME         READY   STATUS    RESTARTS   AGE    IP            NODE      NOMINATED NODE   READINESS GATES
nginx-test   1/1     Running   0          200d   192.168.2.3   node002   <none>           <none>
[root@master001 ~]# 
[root@master001 ~]# kubectl get all -n test
NAME             READY   STATUS    RESTARTS   AGE
pod/nginx-test   1/1     Running   0          200d
[root@master001 ~]# 
[root@master001 ~]# 
[root@master001 ~]# 
[root@master001 ~]# kubectl get pod nginx-test -n text
Error from server (NotFound): namespaces "text" not found
[root@master001 ~]# kubectl get pod nginx-test -n test
NAME         READY   STATUS    RESTARTS   AGE
nginx-test   1/1     Running   0          200d
[root@master001 ~]# kubectl -n test get pod nginx-test -o wide
NAME         READY   STATUS    RESTARTS   AGE    IP            NODE      NOMINATED NODE   READINESS GATES
nginx-test   1/1     Running   0          200d   192.168.2.3   node002   <none>           <none>
[root@master001 ~]# 
 

 类似资料:

相关阅读

相关文章

相关问答