-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with deploying a RedisCluster on OpenShift #24
Comments
It seems that the change of #4 has been removed in this change: fac6855#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557L47 Therefore, /etc/redis/redis.conf isn't writable anymore by the group that should be root. |
I've build my own image like this:
And modified the Manifest to use my image instead of It seems that this allows the cluster to start successfully.
It would be great to be able to add this again to the Dockerfile. |
I've created a PR with this fix here: #25 |
I've seen a few mentions of this issue here, but all issues are closed, and creating a RedisCluster on OpenShift using this operator still doesn't seem to work.
Note that I'm using the Redis Operator 0.13.0, the latest one that is available in the Operator Hub on OpenShift.
I'm using the following Manifest to create the cluster.
I can see it creates a RedisCluster with a name
redis-cluster
, and a StatefulSet namedredis-cluster-leader
. However, the Statefulset doesn't contain any pods and has the following error. It seems that this is due to therunAsUser
parameter in thesecurityContext
.When I set the
securityContext
to an empty object (like below), I can see that two pods are created, but I get the permission errors at startup.Inside the container, I observe these permissions:
So it seems that this change isn't applied: #4
When I run this locally, on docker, it seems that the image isn't modified like in above PR.
See also:
The text was updated successfully, but these errors were encountered: