This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[stable/postgresql] Using minikube, mkdir: cannot create directory ‘/bitnami/postgresql/data’ #14390
Comments
docktermj
changed the title
stable/postgresql mkdir: cannot create directory ‘/bitnami/postgresql/data’
[stable/postgresql] mkdir: cannot create directory ‘/bitnami/postgresql/data’
Jun 1, 2019
docktermj
changed the title
[stable/postgresql] mkdir: cannot create directory ‘/bitnami/postgresql/data’
[stable/postgresql] Using minikube, mkdir: cannot create directory ‘/bitnami/postgresql/data’
Jun 1, 2019
I'm also having the same issue here. |
Me, too. |
This was referenced Jun 3, 2019
Thanks for reporting the issue!! On the one hand, please note that you can solve the permissions issue by creating a initContainer that prepare the volume with the right permissions. To do so, use a values.yaml like the one below: persistence:
enabled: true
existingClaim: postgresql-claim
volumePermissions:
enabled: true
postgresqlDatabase: G2
postgresqlPassword: postgres On the other hand, there's a small bug in the logic used on the initContainer to adapt the permissions and I just created a PR to address it. Thanks for reporting it again. |
Hi everyone The changes were just merged and now you should be able to follow the steps @docktermj indicated and the persistence:
enabled: true
existingClaim: postgresql-claim
volumePermissions:
enabled: true
postgresqlDatabase: G2
postgresqlPassword: postgres Please ensure you're using the latest MongoDB chart version $ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈ |
This was referenced Jun 12, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Which chart:
stable/postgresql
Description
When using
minikube
, Persistent Volumes (PV) usinghostPath
fail when used instable/postgresql
chart.Steps to reproduce the issue:
namespace.yaml
file:kubectl create -f namespace.yaml
persistent-volume-postgresql.yaml
file:kubectl create -f persistent-volume-postgresql.yaml
persistent-volume-claim-postgresql.yaml
file:kubectl create -f persistent-volume-claim-postgresql.yaml
postgresql.yaml
file:stable/postgresql
helm chart.Describe the results you received:
Describe the results you expected:
A chart that comes up. :-)
Additional information you deem important (e.g. issue happens only occasionally):
Version of Helm and Kubernetes:
helm version
:kubectl version
:minikube
:Cleanup
The text was updated successfully, but these errors were encountered: