# Clarfiication on persistent volume

**URL:** <https://discuss.kubernetes.io/t/clarfiication-on-persistent-volume/17360>\
**Category:** General Discussions\
**Created:** [September 8, 2021, 12:43pm UTC](https://discuss.kubernetes.io/t/clarfiication-on-persistent-volume/17360 "2021-09-08T12:43:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![inbox.amitraj](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/inbox.amitraj/32/7646_2.png) [@inbox.amitraj](https://discuss.kubernetes.io/u/inbox.amitraj)\
**Post date:** [September 8, 2021, 12:43pm UTC](https://discuss.kubernetes.io/t/clarfiication-on-persistent-volume/17360/1 "2021-09-08T12:43:12Z")

</div>

when we create a PV using localhost, from where does the storage gets allocated?  
is it on the master node or the worker node where pods is running?

apiVersion: v1  
kind: PersistentVolume  
metadata:  
name: safari-pv  
labels:  
type: local  
spec:  
capacity:  
storage: 2Gi  
accessModes:  
- ReadWriteOnce  
hostPath:  
path: “/Volume/data”

Thank you

---

<div class="post-metadata">

**Author:** ![inbox.amitraj](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/inbox.amitraj/32/7646_2.png) [@inbox.amitraj](https://discuss.kubernetes.io/u/inbox.amitraj)\
**Post date:** [September 8, 2021, 2:31pm UTC](https://discuss.kubernetes.io/t/clarfiication-on-persistent-volume/17360/2 "2021-09-08T14:31:42Z")

</div>

I found the answer. it is on the host on which pod is running, hence the name `hostPath`
