Skip to content
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

Allow mounting a volume to host the config and enable read only root FS #1507

Merged
merged 1 commit into from
May 24, 2024

Conversation

adejanovski
Copy link
Contributor

Fixes #1506

Instead of modifying files in /etc/cassandra-reaper (which is located on the root FS), this PR uses a volume mount under /etc/cassandra-reaper/config which can be an emptyDir in Kubernetes. It will be writeable whatever the uid is and while keeping the root FS read only.

The entrypoint scripts will copy the base cassandra.yaml and shiro.ini files from /etc/cassandra-reaper to /etc/cassandra-reaper/config and update them there to add all the necessary settings.

This solution is backwards compatible with pods running with no specific security context.

@adejanovski adejanovski marked this pull request as ready for review May 24, 2024 14:23
@adejanovski adejanovski merged commit f52e877 into master May 24, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues running the container with a read only root FS
2 participants