kubernetes - Kubernetes ReplicaFailure FailedCreate 但没有事件
问题描述
我在 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
推荐阅读
- python - 如何将“%”连接到输入?
- c++ - 在 ABB (C++) 中使用指针
- python - 安装 Pillow v7.0.0 和 python 3.8.2 时出现命令错误
- android - Flutter MethodChannel 未处理异常:MissingPluginException(在通道 com.mypackage.messages 上找不到方法 startService 的实现)
- javascript - 打开跨域域和输入表单值
- oracle - PLS-00302:必须声明组件“睡眠”
- assembly - 如何在 JIT 中调用“放置”
- spring - 反转控制的好处
- django - django的delete()函数中的False有什么用?
- python - 在一行 Python 中生成长度列表