Improve support for readOnlyRootFs #2003
TobiasDeBruijn
started this conversation in
Ideas
Replies: 2 comments
|
What’s the use case and benefits of this? Security? Against what? |
0 replies
|
Security yeah. It doesn't add a lot compared to e.g not running as root, but it does contribute slightly. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey there,
I want to make all my pods have a readOnlyRootFs, this however proved difficult for Transmission, not impossible though. This is how I had to solve the couple of issues. This is specific to Kubernetes and PIA as provider:
I had to create a couple of
emptyDirs, for/tmp,/etc/openvpn/piaand/etc/transmission:Mounted at
/tmp,/etc/openvpn/piaand/etc/transmissionrespectively:This too caused some issues, for
/etc/openvpn/piait was missing two scripts it needs and the configuration files. This was solved with the followinginitContainer:For
/etc/transmissionit too was missing required scripts, this too was solved with aninitContainer:With that, you have a working Transmission with
Possible, but difficult and verbose.
The 'Feature request' then here is, can we make this easier?
Thanks!
All reactions