[英]Unable to point the difference in Kubernetes PODS configurations
I renamed the one on the left to myredis_err and printed the logs.我将左边的一个重命名为 myredis_err 并打印了日志。 The logs are the same.
日志是一样的。 But check the status.
但是检查状态。 I am thoroughly confused.
我彻底糊涂了。
Also, why the solution had restartPolicy as Always?另外,为什么解决方案总是有 restartPolicy ? The question does not mention restart behavior at all.
这个问题根本没有提到重启行为。
TIA. TIA。
if i understand your question correctly you need to specify the liveness/readiness probe in one of the following formats:如果我正确理解了您的问题,您需要以下列格式之一指定活性/就绪性探针:
readynessProbe:
exec:
command: ["redis-cli", "PING"]
or要么
readynessProbe:
exec:
command:
- redis-cli
- PING
kubernetes will not understand the - redis-cli PING
as you have specified it kubernetes 不会理解您指定的 -redis
- redis-cli PING
more information can be found on the official documentation .更多信息可以在官方文档中找到。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.