kubectl get rs
时间: 2024-01-19 09:04:12 浏览: 122
运行命令"kubectl get rs"将显示当前所有的replica set,包括所有pod的副本数以及它们的可用数量和状态等信息。
#### 引用[.reference_title]
- *1* *2* *3* [Kubectl 常用命令分类记录](https://blog.csdn.net/m0_67900727/article/details/123527182)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
相关问题
[root@region-master1 ~]# kubectl get rc -n test2-ns2 No resources found in test2-ns2 namespace. [root@region-master1 ~]# kubectl get rs -n test2-ns2 No resources found in test2-ns2 namespace. [root@region-master1 ~]# kubectl delete pod -n test2-ns2 --all pod "harbor-operator-harbor-sample-harbor-database-0" deleted pod "harbor-operator-harbor-sample-harbor-redis-0" deleted pod "harbor-operator-harbor-sample-harbor-trivy-0" deleted [root@region-master1 ~]# kubectl get deployments.apps -n test2 No resources found in test2 namespace. [root@region-master1 ~]# kubectl get deployments.apps -n test2-ns2 No resources found in test2-ns2 namespace. [root@region-master1 ~]# kubectl get deployments -n test2-ns2 No resources found in test2-ns2 namespace. [root@region-master1 ~]# kubectl get pod -n test2-ns2 NAME READY STATUS RESTARTS AGE harbor-operator-harbor-sample-harbor-database-0 1/1 Running 0 3m6s harbor-operator-harbor-sample-harbor-redis-0 1/1 Running 0 3m6s harbor-operator-harbor-sample-harbor-trivy-0 1/1 Running 0 2m36s
您好,看到您的命令输出,似乎您已经成功删除了`test2-ns2`命名空间中的所有pod。但是,您可以尝试使用以下命令来确认该命名空间中是否还有其他资源:
```
kubectl get all -n test2-ns2
```
该命令将显示该命名空间中的所有资源,包括pod、replication controllers、replica sets、deployments、services等等。如果输出为空,则表示该命名空间中已经没有任何资源了。
阅读全文