Replies: 1 comment 1 reply
-
Given that you're setting I'm guessing you're running into issues running the service? I would imagine that PostgreSQL itself doesn't like having |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I am using Kubernetes to spin up a postgres pod/container. I also want to make it persistent, so I am using a smb server (TrueNas) to create a PV / PVC to be used by this pod.
Here is my simple setup:
Config map to store some credentials.
Persistent volume and persistent volume claim to be used by the pod
Service to expose the server
Main deployment file.
Now, the issue is that for some reason,
Postgres container has the
/var/lib/postgresql/data
directory mounted to some other virtual device (probably created by containerd runtime) when the/var/lib/postgres
directory is already mounted to the PVC.From inside the container, I see the following:
Intially, I had the PGDATA set to
/var/lib/postgresql/data/data
but this was leading me to loose the entire data because of the exact same problem. Because of this, I cannot use thedata
driectory to store anything as it would be mounted later on.Is this expected behavior? Is there anyway, I can resolve this issue or is this something that is not related to postgres but kubernetes?
Beta Was this translation helpful? Give feedback.
All reactions