<p>I am trying to attach a storage class to all the PVC request created by individual user pods for jupyter notebooks in kubeflow.</p>

<p>I tried editing some values and specify storage_class. but none of it is working, whenever a new pvc comes up it doesnot come with a storage class name.</p>

<p>The desired result is whenever a pvc of user pods comes, it should have the name of storage class attached with it. Kindly help with this. I am stuck from last day</p>

Geo Antony
<p>you need to have a default storage class in your cluster, so if a pvc does not specify any storage class then default one would be selected. </p>

<p>List the StorageClasses in your cluster:</p>

<p><code>kubectl get storageclass</code></p>

<p>Mark a StorageClass as default:
 set the annotation storageclass.kubernetes.io/is-default-class=true.</p>

<p><code>kubectl patch storageclass &lt;your-class-name&gt; -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'</code></p>

<p>Here are the detail steps <a href="https://kubernetes.io/docs/tasks/administer-cluster/change-default-storage-class/" rel="nofollow noreferrer">change-default-storage-class</a></p>
