查询
kubectl get ns
kubectl get pods -o wide
kubectl get deployment
kubectl get svc
kubectl get ingress
kubectl get ingressClass
kubectl get endpoints #pb-nginx
#kubectl get pods,deployment,svc -A
#kubectl get pods,deployment,svc,ns,ingress,ingressClass -A
kubectl get validatingwebhookconfigurations
helm ls --all-namespaces
删除pod Terminating
kubectl delete pod dp-nginx-5d7c4f794b-jblhq -n default --force --grace-period=0
如果强制删除还不行,设置finalizers为空
kubectl patch pod dp-nginx-5d7c4f794b-jblhq -n default -p '{"metadata":{"finalizers":null}}'