Difference between revisions of "Postgres Kubernetes"
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
chown: changing ownership of '/var/lib/postgresql/data/pgdata': Operation not permitted | chown: changing ownership of '/var/lib/postgresql/data/pgdata': Operation not permitted | ||
``` | ``` | ||
− | + | - https://github.com/docker-library/postgres/issues/361 | |
- https://stackoverflow.com/questions/50642924/how-to-map-user-permissions-defined-in-a-docker-container-that-already-exist-on | - https://stackoverflow.com/questions/50642924/how-to-map-user-permissions-defined-in-a-docker-container-that-already-exist-on | ||
``` | ``` | ||
docker run --entrypoint="bash" postgres -c 'usermod -u 2006 postgres;exec /docker-entrypoint.sh postgres' | docker run --entrypoint="bash" postgres -c 'usermod -u 2006 postgres;exec /docker-entrypoint.sh postgres' | ||
``` | ``` |
Revision as of 15:59, 13 August 2021
- https://www.bmc.com/blogs/kubernetes-postgresql/ statefulset
- https://github.com/helm/charts/tree/master/stable/postgresql
- https://severalnines.com/database-blog/using-kubernetes-deploy-postgresql
- https://link.medium.com/aIOXFaB1Cdb
- https://access.crunchydata.com/documentation/postgres-operator/latest/quickstart/ https://link.medium.com/aIOXFaB1Cdb
- https://thenewstack.io/tutorial-deploy-postgresql-on-kubernetes-running-the-openebs-storage-engine/
Change userid
chown: changing ownership of '/var/lib/postgresql/data/pgdata': Operation not permitted
- https://github.com/docker-library/postgres/issues/361
- https://stackoverflow.com/questions/50642924/how-to-map-user-permissions-defined-in-a-docker-container-that-already-exist-on
docker run --entrypoint="bash" postgres -c 'usermod -u 2006 postgres;exec /docker-entrypoint.sh postgres'