I'm using the rabbitmq helm chart from here: https://github.com/helm/charts/tree/master/stable/rabbitmq-ha
and I want to store the messages and queues outside minikube so I can continue from there everytime I run minikube. However, I cannot see in the documentation how to add a volume or persistent volume to point to my host machine.
I found the answer thanks to Grigoriy Mikhalkin. My problem was that I was using hyperkit that deleted the data when I run minikube stop
whereas if we use virtualbox as the driver and run minikube stop the data will be there next time we run minikube start
minikube start --driver=virtualbox
Here is minikube docs for PersistentVolume
. It supports hostPath
out of the box, so you can just set it's path to any existing directory in your VM(i'm assume you using some VM as a driver). Then, if rabbitmq, persists any data in PersistentVolume
, you cn retrieve it from there.
To get this data on your host, you will need to map VM directory(which you're using for hostPath
) to host directory. You can access VM with minikube ssh
command. Then read VM docs on how you cn map directory to host directory.