Kubernetes解决Deployment一直处于NotReady

处理步骤

  1. 查看pods状态,发现pod没有成功创建:
1
kubectl get po
  1. 查看deployment状态,发现deployment一直处于NotReady状态,查看其描述,得不到任何讯息
1
2
3
4

kubectl get deploy
kubectl describe deploy nfs-client-provisioner

2020-07-23-12-01-41

  1. 查看ReplicationSet状态,发现出错,查看其描述,找到出错的原因

kubectl get rs
kubectl describe rs nfs-client-provisioner-56596b5cc5

2020-07-23-12-02-08