我们有一个简单的发布测试 Redis
图表。运行后helm test myReleaseName --tls --cleanup
, 我们有
RUNNING: myReleaseName-redis
ERROR: timed out waiting for the condition
Github 存储库中的几个问题 https://github.com/helm/helm/search?q=timed+out+waiting+for+the+condition&type=Issues但我没有找到解决办法。
这里发生了什么?
最佳答案
这首先看起来令人费解并且显示的信息很少,因为 --cleanup
运行后将杀死 pod 。可以删除它以获取更多信息。因此,我重新进行了测试
helm test myReleaseName --tls --debug
然后使用
kubectl get pods
检查用于测试的 pod。 (它可以是其他名称。)NAME READY STATUS RESTARTS AG
myReleaseName-redis 0/1 ImagePullBackOff 0 12h
从这里开始,现在更清楚图像有问题,结果是拉取图片的链接不正确 . (使用
kubectl describe pod <pod-name>
然后你可以找到你用来拉图像的链接。)修复链接,它起作用了。
关于kubernetes - Helm 测试失败 : timed out waiting for the condition,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51975069/