How to solve permission trouble when running Postgresql from minikube?

后端 未结 1 1307
悲&欢浪女
悲&欢浪女 2021-01-19 00:55

I am trying to run a Postgresql database using minikube with a persistent volume claim. These are the yaml specifications:

minikube-persistent-volume.yaml:

1条回答
  •  情歌与酒
    2021-01-19 01:40

    Maybe you're having a write permission issue with Virtualbox mounting those host folders. Instead, use /data/postgres as a path and things will work.

    Minikube automatically persists the following directories so they will be preserved even if your VM is rebooted/recreated:

    • /data
    • /var/lib/localkube
    • /var/lib/docker

    Read these sections for more details:

    1. https://github.com/kubernetes/minikube#persistent-volumes
    2. https://github.com/kubernetes/minikube#mounted-host-folders

    0 讨论(0)
提交回复
热议问题