排错命令:
kubectl get nodes
kubectl get service
kubectl get deploy
kubectl get pods
kubectl get pods --namespace=xxx
kubectl get pods --namespace=kube-system
kubectl get pods --all-namespaces -o wide
kubectl describe pod <pod-name>
kubectl describe deployment/<deployment-name>
kubectl describe replicaset/<replicaset-name>
kubectl logs <pod-name>
kubectl logs <pod-name> --previous
参考链接:
kubernetes 部署失败的 10 个最普遍原因(Part 1)
http://dockone.io/article/2247
kubernetes 部署失败的 10 个最普遍原因(Part 2)
http://dockone.io/article/2268