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

🐛 Set fsGroup for non-OpenShift clusters #173

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

jmontleon
Copy link
Member

@jmontleon jmontleon commented Mar 29, 2023

On EKS and probably other kubernetes variants the PostgreSQL pods run as user 26. Without setting the fsGroup the storage is mounted 755 owned by root:root so postgres can't write and fails to start with a permission denied.

26 comes from the Dockerfile the image is built with https://github.com/sclorg/postgresql-container/blob/master/12/Dockerfile.centos7#L88

Signed-off-by: Jason Montleon <jmontleo@redhat.com>
@jmontleon jmontleon self-assigned this Mar 29, 2023
@jmontleon jmontleon changed the title Set pgsql fs group 🐛 Set fsGroup for non-OpenShift clusters Mar 29, 2023
Copy link
Contributor

@fbladilo fbladilo left a comment

Choose a reason for hiding this comment

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

LGTM , @jmontleon In OpenShift I assume the USER 26 setting gets ignored in favor of the ephemeral assigned user correct?

@jmontleon
Copy link
Member Author

@fbladilo correct.

@jmontleon jmontleon merged commit 3aeefff into konveyor:main Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants