1、查看pod信息
kubectl describe po hollow-node-1693 -n kubemark
2、描述节点信息
kubectl describe no izuf6clt44axl097nfxyoaz
3、分析节点日志
kubectl logs hollow-node-999 -n kubemark -c hollow-kubelet
4、查看kubemark资源信息
kubectl get sts -n kubemark -o yaml
5、搜索Running状态的pod
kubectl get po -n kubemark | grep -v Running
6、给hollow-node扩缩容
kubectl scale sts hollow-node --replicas=3000 -n kubemark
7、实时查看kubemark的拉起hollow-node进度
kubectl get po -n kubemark -w
7、查看内网ip
hostname -i
8、批量操作资源(如pod、node),演示的是删除节点
kubectl get node | grep hollow-node | awk '{print $1}' | xargs -I{} kubectl delete node {}
9、查看日志
kubectl logs hollow-node-1022 -n kubemark -c hollow-kubelet --tail 200
10、删除kubemark里的hollow-node
kubectl delete po hollow-node-3627 -n kubemark
11、查看hollow-node的yaml
kubectl get hollow-node-579 -n kubemark -o yaml
12、删除hollow-node的pod
kubectl get po -n kubemark | grep -v Running |awk '{print $1}' | xargs -I{} kubectl delete pod {}