Skip to content

Fix Prometheus persistent volume mount ownership#22

Merged
jaypipes merged 1 commit intoaws:masterfrom
stefanprodan:prom-pv-fix
Oct 23, 2019
Merged

Fix Prometheus persistent volume mount ownership#22
jaypipes merged 1 commit intoaws:masterfrom
stefanprodan:prom-pv-fix

Conversation

@stefanprodan
Copy link
Copy Markdown
Collaborator

@stefanprodan stefanprodan commented Oct 23, 2019

Fix: #21 by mounting the PV in an init container that sets the ownership to the UID used by the Prometheus container.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Copy Markdown
Contributor

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good. Would be great to get a short description of how the changes fix the issue at hand, though. Something like "Mounts data volume in initContainers with specific non-root user ownership and runs the containers which need access to the volume as that UID."

@jaypipes jaypipes merged commit ba7968b into aws:master Oct 23, 2019
@stefanprodan stefanprodan deleted the prom-pv-fix branch October 23, 2019 14:40
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.

prometheus: Unable to create mmap-ed active query log

2 participants