-
Notifications
You must be signed in to change notification settings - Fork 339
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
fix: for k8s set PGDATA to subfolder #253
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: wilmardo <info@wilmardenouden.nl>
Hey @wilmardo ! Thanks for the PR. I'll try this ASAP and report here. EDIT: My bad, I misunderstood |
Back with feedback! Got the exact same error but the directory is different:
I'm gonna try with the different EDIT: Just tried the other idea but still no luck. It doesn't want to work. |
Signed-off-by: wilmardo <info@wilmardenouden.nl>
@Telokis Thanks for the test! Good point about the The current approach is what you gave tested and still isn't working? |
Yes, I tried with the current setup (after your modifications) but I also tried with the previous setup. In both cases, the same error arised. |
Could you share the |
I didn't change it at all, I'm using all default values everywhere. It was a simple "clone and run" test |
Source: https://hub.docker.com/_/postgres/
Since within Kubernetes the persistent disks are filesystem mountpoints the PGDATA variable should be set to a subdir.
This should fix #251 but I have not been able to test it yet.
EDIT:
Just tested this and it works fine but it also works fine without (this is on NFS however so might not be completely representable). @Telokis could you test this?
I am still in favor of merging this since it is advised by Postgres 👍