Kubernetes Postgres pod - cannot create directory: Permission denied #22033
-
Any idea how to resolve this error when setting up ManageIQ on Kuberentes?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
This is likely a problem with the storage or perhaps the storage class you have. @bdunne Can you help out here? |
Beta Was this translation helpful? Give feedback.
-
This is usually due to the PV permissions being too restrictive (something like root/root 700). Since the postgres container runs as the postgres user (id 26) it doesn't have permissions to write in this case. I'd recommend making the permissions less restrictive on the PV (chmod 777 should work). |
Beta Was this translation helpful? Give feedback.
This is usually due to the PV permissions being too restrictive (something like root/root 700). Since the postgres container runs as the postgres user (id 26) it doesn't have permissions to write in this case. I'd recommend making the permissions less restrictive on the PV (chmod 777 should work).