kumahq / kuma-demo

A demo app to illustrate the capabilities and advantages of Kuma. 🐻
https://kuma.io/
Apache License 2.0
57 stars 54 forks source link

mount a volume into postgre container to support run postgre db by a non-root user #166

Closed jijiechen closed 3 months ago

jijiechen commented 3 months ago

On OpenShift clusters, containers will be assigned to an arbitrary user ID within the range of [1000670000, 1000679999], and they don't have permission to write /var/run/postgresql which is the default data directory of the database image.

This PR is to fix the issue above by mounting a volume into the container and let the db put data into a subdirectory, so that it will be writable.

chmod: /var/run/postgresql: Operation not permitted

<Explain your change!>

Did you sign your commit? Instructions

Have you read Contributing guidelines?

jijiechen commented 3 months ago

This application is referenced in this doc: https://docs.konghq.com/mesh/latest/features/openshift-quickstart/