Closed diffuse closed 10 months ago
After further debugging, it turns out this was an issue with the values set in podSecurityContext
and redisCluster.securityContext
.
Everything works with the following values:
redisCluster:
# ..snip...
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
# ..snip..
podSecurityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
Changing the values in either podSecurityContext
OR redisCluster.securityContext
to 1099 will reproduce the above issue. I'm not sure at which point in the setup this starts creating issues, but the end result was that the leader pod was running redis in protected mode with no password configured.
Does this issue reproduce with the latest release? Yes, v0.15.11.
What operating system and processor architecture are you using (
kubectl version
)? minikubev1.30.1
.kubectl version
OutputWhat did you do? I configured the cluster with a secret defined, e.g.
What did you expect to see? The cluster leader and follower pods to come up successfully.
What did you see instead? The first redis cluster leader pod hangs at
0/1 Running
, then transitions toCrashLoopBackOff
. The output fromdescribe
on this pod shows that the liveness and readiness probes are failing because they can't authenticate: