deployment fails to recreate a successful replicaset

user8722476 picture user8722476 · Feb 23, 2018 · Viewed 11.3k times · Source

We are using Kubernetes 1.8 to deploy our software in a cloud provider. Frequently, when deploying a specific pod-template, the deployment fails to create a successful replicaset and no instance is created. I am not able to find a better description than kubectl describe deploy.

  Type           Status  Reason
  ----           ------  ------
  Available      False   MinimumReplicasUnavailable
  Progressing    False   ProgressDeadlineExceeded
OldReplicaSets:  <none>
NewReplicaSet:   <none>
Events:
  Type    Reason             Age               From                   Message
  ----    ------             ----              ----                   -------
  Normal  ScalingReplicaSet  21m (x3 over 2d)  deployment-controller  Scaled up replica set cbase-d-6bbfbdb5dc to 1
  Normal  ScalingReplicaSet  19m (x3 over 2d)  deployment-controller  Scaled down replica set cbase-d-6bbfbdb5dc to 0

Answer

user2293109 picture user2293109 · Nov 13, 2019

I got a similar error like yours yesterday and finally figured out that I could get error message from the pod corresponds with the deployment by using command kubectl get pod YOUR_POD_NAME -o yaml. You can check the status and error message there.