我应该给 kubernetes nfs 挂载路径什么权限

我应该给 kubernetes nfs 挂载路径什么权限

当我在 kubernetes 集群中启动 postgresql 时,日志如下所示:

postgresql 07:00:48.68 
postgresql 07:00:48.68 Welcome to the Bitnami postgresql container
postgresql 07:00:48.68 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-postgresql
postgresql 07:00:48.68 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-postgresql/issues
postgresql 07:00:48.68 
postgresql 07:00:48.70 INFO  ==> ** Starting PostgreSQL setup **
postgresql 07:00:48.72 INFO  ==> Validating settings in POSTGRESQL_* env vars..
postgresql 07:00:48.72 INFO  ==> Loading custom pre-init scripts...
postgresql 07:00:48.73 INFO  ==> Initializing PostgreSQL database...
mkdir: cannot create directory ‘/bitnami/postgresql/data’: Permission denied

那么我应该给最小/bitnami/postgresql/data文件夹什么权限呢?我为什么要给予这个许可?

相关内容