部署无法重新创建成功的副本集 [英] deployment fails to recreate a successful replicaset

查看:63
本文介绍了部署无法重新创建成功的副本集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Kubernetes 1.8在云提供商中部署我们的软件.通常,在部署特定的Pod模板时,部署无法创建成功的副本集,并且不会创建任何实例.我找不到比kubectl描述部署更好的描述.

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

推荐答案

昨天我遇到了类似您的错误,最后发现可以通过使用命令kubectl get pod YOUR_POD_NAME -o yaml从pod中获取与部署相对应的错误消息.您可以在那里查看状态和错误消息.

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.

这篇关于部署无法重新创建成功的副本集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆