I'd like to set a Persistent Volume (pv and pvc), shared by pods in Kind cluster. But I need to keep the data persisted in my laptop (host server) as well, so the volume's path should be something in my laptop, which I can directly access it.
If I delete the kind cluster, the volume should be persisted, not be destroyed.
I hope to easily add or update in that volume or copy files out of it from my host laptop.
How can I let the pods know it in KIND cluster?
Paste my kind.yaml for your refernce
$ kind
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
- role: worker