Difference between revisions of "Postgres Kubernetes"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | - https://cloudnative-pg.io/documentation/1.21/samples/cluster-example-full.yaml | ||
+ | |||
- https://www.bmc.com/blogs/kubernetes-postgresql/ statefulset | - https://www.bmc.com/blogs/kubernetes-postgresql/ statefulset | ||
Line 11: | Line 14: | ||
- https://thenewstack.io/tutorial-deploy-postgresql-on-kubernetes-running-the-openebs-storage-engine/ | - 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' | ||
+ | ``` |
Latest revision as of 23:49, 9 December 2023
- https://cloudnative-pg.io/documentation/1.21/samples/cluster-example-full.yaml
- 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'