查看default命名空間下的所有pod:
kubectl get po -o wide
查看xxx命名空間下的所有pod:
kubectl get po -n xxx -o wide
查看服務:
kubectl get svc -o wide
命令行強制刪除pod:
kubectl delete pod podName --force --grace-period=0
根據配置文件刪除pod:
kubectl delete -f eureka.yml
刪除xxx命名空間下的pod:
kubectl delete pod podName -n xxx