Can we have static Kubernetes PV names with dynamic hostpath provisioner(rancher) ..?

12/2/2019

I am using hostpath provisioner (rancher/local-path-provisioner) for kubernetes dynamic local storage. It creates directory/PVs name dynamically with unique IDs for every deployment.

Example :

pvc-af56ba08-1457-11ea-ab6f-005056a0ebbc pvc-412aafd7-1457-11ea-ab6f-005056a0ebbc

Is thr any way i can configure or assign name of directory/PVs to specific deployment with dynamic provisioning..?

Like : pvc-of-my-app

-- Arjun Kanti
kubernetes
kubernetes-pvc

0 Answers