<p>Note: solution can use netcat or any other built-in Linux utility</p>

<p>I need to implement an initContainer and liveness probe that confirms my redis pod is up for one of my redis dependent pods. I have attempted the netcat solution offered as the answer <a href="https://stackoverflow.com/questions/33243121/abuse-curl-to-communicate-with-redis">here</a> (<code>(printf "PING\r\n"; sleep 1) | nc 10.233.38.133 6379</code>) but I get <code>-NOAUTH Authentication required.</code> error in response. Any way around this? I am aware I could install redis-cli or make a management command in my Django code but would prefer not to. Nor do I want to implement a web server for my Redis instance and use curl command.</p>

bbmhmmad
<p>You could always send in your <code>AUTH</code> command as part of your probe, like:</p>

<pre><code>`"AUTH ....\r\nPING\r\n"`
</code></pre>

<p>Unless you're getting <code>INFO</code> from the server, you don't seem to care about the nature of the response, so no auth is required, just test for <code>NOAUTH</code>.</p>
