<p>Can anybody please tell me how to use the claim as volumes in kubernetes?</p>
<p>Does a vol needs to be created?</p>
<p>Documentation does not give much information about it:
<a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/#claims-as-volumes" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/storage/persistent-volumes/#claims-as-volumes</a></p>

user9356263
<p>A <code>PersistentVolumeClaim</code> allows to bind to an existing <code>PersistentVolume</code>. A <code>PersistentVolume</code> is a representation of a &quot;real&quot; storage device.</p>
<p>You have the detailed lookup algorithm in the following page, section <code>Matching and binding</code>: <a href="https://github.com/kubernetes/community/blob/master/contributors/design-proposals/storage/persistent-storage.md#matching-and-binding" rel="nofollow noreferrer">https://github.com/kubernetes/community/design-proposals/storage/persistent-storage.md</a></p>
<p>Since it is not very practical to declare each <code>PersistentVolume</code> manually there is an option to use a <code>StorageClass</code> that allows to create a <code>PersistentVolume</code> dynamically.
You can either set the <code>StorageClass</code> in the <code>PersistentVolumeClaim</code> or define a default <code>StorageClass</code> for your cluster.</p>
<p>So when a Pod uses a <code>PersistentVolumeClaim</code> as volume. First a matching <code>PersistentVolume</code> will be searched. If no matching PV can be found and a <code>StorageClass</code> is defined in the claim (or a default <code>StorageClass</code> exists) then a volume will be dynamically created.</p>
