kubectl get rc 获取数据为空
root@ceph-client:~# kubectl get pods
NAME READY STATUS RESTARTS AGE
frontend-708336848-gmk3s 1/1 Running 0 2h
frontend-708336848-t3f4n 1/1 Running 0 2h
frontend-708336848-tjjxd 1/1 Running 0 2h
my-nginx-2629547101-7fu0l 1/1 Running 0 2h
redis-master-2093957696-edcjg 1/1 Running 0 2h
redis-slave-109403812-htgsj 1/1 Running 0 2h
redis-slave-109403812-k5iw2 1/1 Running 0 2h
root@ceph-client:~# kubectl get rc
为空
1 个回复
ɡōōd洋
赞同来自: 赢在行动_37131
你的
pod
是如何建立的,如果你yaml
里面定义的kind
就是pod
那当然没有RC
如果你的
pod
是通过RC
建立的,那就会有kubectl get rc
默认的是default
的namespace
,你可以用kubectl get rc --all-namespaces