kubernetes 使用笔记
命令行
- 统计每个节点上运行的POD数量
kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec.nodeName}" | tr ' ' '\n' | sort | uniq -c
kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec.nodeName}" | tr ' ' '\n' | sort | uniq -c
评论区