helm install postgres报错如下:
postgresql 12:12:18.62
postgresql 12:12:18.62 Welcome to the Bitnami postgresql container
postgresql 12:12:18.62 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-postgresql
postgresql 12:12:18.62 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-postgresql/issues
postgresql 12:12:18.63 Send us your feedback at [email protected]
postgresql 12:12:18.63
postgresql 12:12:18.65 INFO ==> ** Starting PostgreSQL setup **
postgresql 12:12:18.73 INFO ==> Validating settings in POSTGRESQL_* env vars..
postgresql 12:12:18.73 INFO ==> Loading custom pre-init scripts...
postgresql 12:12:18.74 INFO ==> Initializing PostgreSQL database...
mkdir: cannot create directory ‘/bitnami/postgresql/data’: Permission denied
postgresql 12:12:18.76 INFO ==> Stopping PostgreSQL...
问题解决:
有时,集群设置默认情况下不会给正在运行的容器足够的权限来实际写入挂载的卷。出现此故障或避免此故障时,可通过设置 --set volumePermissions.enabled=true
或修改chart文件 volumePermissions.enabled:true
尝试解决
helm install postgresql -n test-namepsace ./postgresql-chart --set volumePermissions.enabled=true
标签:INFO,12,postgresql,postgres,18.62,create,director,bitnami,true
From: https://blog.51cto.com/u_13972012/7529026