作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 Kubernetes 中有部署和副本集,但无法创建 pod。我试过了kubectl describe deployment deployment-name
和kubectl describe replicaset replicaset-name
他们都说
Conditions:
Type Status Reason
---- ------ ------
ReplicaFailure True FailedCreate
Events: <none>
我见过的所有故障排除指南都依赖于来自事件部分的信息,但它说
<none>
就我而言。如何获得更多信息来调试问题?
最佳答案
描述副本集将为您提供导致部署对象失败的错误。
./kubectl describe replicaset <replica-set-name>
示例错误:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal SuccessfulCreate 13m replicaset-controller Created pod: pod
Warning FailedCreate 13m replicaset-controller Error creating: pods "pod" is forbidden: exceeded quota: custom-resource-quota, requested: cpu=510m, used: cpu=1630m, limited: cpu=2
关于Kubernetes ReplicaFailure FailedCreate 但没有事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63199022/
我在 Kubernetes 中有部署和副本集,但无法创建 pod。我试过了kubectl describe deployment deployment-name和kubectl describe re
我是一名优秀的程序员,十分优秀!