Skip to content

Make k8s-metrics-collector chart compatible with readOnlyRootFilesystem: true#47

Open
ghost wants to merge 4 commits intopileus-cloud:mainfrom
tailsdotcom:main
Open

Make k8s-metrics-collector chart compatible with readOnlyRootFilesystem: true#47
ghost wants to merge 4 commits intopileus-cloud:mainfrom
tailsdotcom:main

Conversation

@ghost
Copy link

@ghost ghost commented Dec 18, 2024

We have security requirements on our Kubernetes cluster, one of which is that all pods have a readOnlyRootFilesystem in their security policy (and the commented example in the chart already has).

However there are a number of bits of the app which seem to write to the root filesystem; the logging (to /var/log/agent.log) and the app data directory which also contains read only data.

The approach I've taken is pretty hacky but does work. It might be better to alter the app itself to use /tmp for writing any data and stop logging to the filesystem as well as stdout.

@ghost ghost self-requested a review as a code owner December 18, 2024 16:05
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.

0 participants