kubectl nginx error debug

RJ_Hwang

关注

阅读 110

2022-02-27

[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 ~]# 
 

精彩评论(0)

0 0 举报