Absolute minikube/kubernetes neophyte here.
I'm using minikube with vm-driver = none
(in case that matters) to deploy an application that gives me the option to specify a storageClass for provisioning volumes, and it uses the "standard" storageClass by default.
This WORKS, but it means that all of the data created in the application ends up in /tmp/
(the /tmp/hostpath_pv
folder, I believe).
This makes me itch. I realize minikube itself will persist this data on a minikube restart, but I'm afraid of losing the data on a normal linux cleanup of the /tmp
folder.
I'd like to be able to create a new storageClass (since that's the only easily configurable option I have to work with in the applications configuration YAML) that makes minikube stick persistent volumes in the /data
directory (or anywhere else that won't be auto-cleaned by the OS).
Is there a simple way to do this? Or is it even a problem at all to have my volumes in /tmp
?
Sorry for the complete noobery. I appreciate your help.