-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
mkdir: can't create directory '/opt/redis': Permission denied #19
Comments
And also all PVs and PVCs are configured and on Bound status:
Also on the persistent volume mounted on /data I can write from inside of any of the pods:
|
And also these are the permissions on the directories above on all pods:
|
The only way how I could make it work, without having any access or making any change on the images/pods directory permissions was by adding the scc policy like below which would cause PODs to run on elevated privileges as root. And this is not a good idea imo. I wonder if there is any other way to make it run as default userid: 1000610000 without having to resort to this privilege escalation... |
Hmm, Ideally this shouldn't be coming, have you used any securityContext in parallel? |
In my knowledge I haven't used any other securityContext or other configuration rather than the default ones. Could I check if any config is used other than the default? |
Not sure this helps. Following this https://developers.redhat.com/blog/2020/10/26/adapting-docker-and-kubernetes-containers-to-run-on-red-hat-openshift-container-platform/#more-760987 I was able to get it work on crc locally: RUN chgrp -R 0 /etc/redis && and used that instead. Cluster started properly after that. |
Facing the same issue on Openshift 4.5.18 |
I guess this issue persists for openshift cluster, we will work on this |
Fixed in #26 |
Hi, /usr/bin/entrypoint.sh: line 14: /etc/redis/redis.conf: Permission denied OpenShift Version 4.6.13 |
I can also confirm this is still an issue in OpenShift 4.6. OpenShift Version 4.6.15 Can this be reopened? |
Hello,
Following step by step installation and configuration here: https://ot-container-kit.github.io/redis-operator/#/installation/kubectl
I get the errors below when starting pods (on all of them)
Cluster is OKD4.5, and here are the cluster versions:
The text was updated successfully, but these errors were encountered: