Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upchown in the entrypoint for PVC #3677
Comments
This comment has been minimized.
This comment has been minimized.
Misteur-Z
commented
Mar 28, 2018
|
Seems I am not the only one running prometheus v2+ with a Kubernetes PersistentVolume / PersistentVolumeClaim ... thanks for the fix, it's working out. |
This comment has been minimized.
This comment has been minimized.
|
This isn't really something Prometheus should be doing, especially as it shouldn't be run as root. |
brian-brazil
closed this
Apr 18, 2018
This comment has been minimized.
This comment has been minimized.
|
Until K8s PVC allow setting the default UID/GID that has permission on a new disk, this is an issue. You're right, it shouldn't run as root. However it could start as root just for chown and then run as another user. This is pretty safe, especially nowadays. |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
wernight commentedJan 11, 2018
•
edited
Kubernetes PersistentVolumeClaim have
rootby default.The way Prometheus could, and should, support those is by having a Docker entrypoint that does:
The issue here is that most container use environment variables instead of CLI which allows to support when users used a non-default directory.
See also fabric8io/fabric8-maven-plugin#533
Only hacky workaround for Kubernetes is: