Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Point PGDATA to the root of the volume mount (#1203)
At least with Kubernetes 1.6 a hostPath volume mount will be owned by root and have 750 permissions. The docker-entrypoint.sh script will try to assign ownership to the postgres user: mkdir -p "$PGDATA" chmod 700 "$PGDATA" chown -R postgres "$PGDATA" But this is insufficient if PGDATA points to a subdirectory of the mount directory since the postgres user doesn't have "execute" permission and therefore cannot reach the data directory.
- Loading branch information