redis-master-data volume mounted but not used
huzlak opened this issue · comments
Gloo Edge Product
Enterprise
Gloo Edge Version
1.16.7
Kubernetes Version
v1.27.0
Describe the bug
In redis deployment helm template a volume redis-master-data
is mounted into redis pods, but redis is not configured to use this volume neither to store data nor for snapshots/persistence. It seems like this emptyDir is just mounted and not used at all
Expected Behavior
I expect only used volumes to be mounted.
Steps to reproduce the bug
- Deploy gloo-ee and execute into redis pod.
- Check redis.conf file and see there's no configuration related to
redis-master-data
directory, neither running redis-cli CONFIG GET * show no signs of this directory being used
Additional Environment Detail
No response
Additional Context
This causes issues in openshift environment. OpenShift runs containers with a semi-random user id. /data is hardcoded in the image, owned by user id 999 and writable only by the owner. So on OpenShift this folder cannot be written. The /redis-master-data on the other hand, even if it is owned by root, is world-writeable.
No response
Zendesk ticket #3890 has been linked to this issue.