I renamed the one on the left to myredis_err and printed the logs. The logs are the same. But check the status. I am thoroughly confused.
Also, why the solution had restartPolicy as Always? The question does not mention restart behavior at all.
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
more information can be found on the official documentation.