<p>I'm trying to create persistent volume (PV) on AWS using the persistent volume claim (PVC) and default storage class (of AWS). But PV does not get created on AWS with the default storage class. Not sure if it is an AWS issue (not supporting default storage) or Kubernetes. If I check the status, PV remains in <strong>Pending</strong> state.</p>
<p>Please refer attached screenshot and my manifest file :-</p>
<pre class="lang-sh prettyprint-override"><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: sonar-data
spec:
accessModes:
- ReadWriteOnce
storageClassName: default
resources:
requests:
storage: 31Gi
</code></pre>
<p>Events:-</p>
<pre class="lang-sh prettyprint-override"><code>vinod827@Vinods-MacBook-Pro ~ % kubectl get pv
No resources found in default namespace.
vinod827@Vinods-MacBook-Pro ~ % kubectl get pvc
NAME               STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS   AGE
sonar-data         Pending                                      default        79m
sonar-extensions   Pending                                      default        79m
vinod827@Vinods-MacBook-Pro ~ % kubectl describe pvc sonar-data
Name:          sonar-data
Namespace:     default
StorageClass:  default
Status:        Pending
Volume:        
Labels:        &lt;none&gt;
Annotations:   &lt;none&gt;
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:      
Access Modes:  
VolumeMode:    Filesystem
Mounted By:    sonarqube-6445dc8747-bbktk
Events:
  Type     Reason              Age                 From                         Message
  ----     ------              ----                ----                         -------
  Warning  ProvisioningFailed  9s (x322 over 80m)  persistentvolume-controller  storageclass.storage.k8s.io &quot;default&quot; not found
vinod827@Vinods-MacBook-Pro ~ % 
</code></pre>

<p>Yeah, most likely not. It depends on how you provisioned your cluster and what your default storage class looks like. 🤔</p>
<p>If you are in AWS you might have to create one for <a href="https://kubernetes.io/docs/concepts/storage/storage-classes/#aws-ebs" rel="nofollow noreferrer">AWS EBS</a> if that's what you would like to use. ❓</p>
<p>You can create any of the other <a href="https://kubernetes.io/docs/concepts/storage/storage-classes/#provisioner" rel="nofollow noreferrer">supported ones too</a>, depending on what you have in your infrastructure. 🤷</p>
<p>You can check what you have in your cluster 👀:</p>
<pre class="lang-sh prettyprint-override"><code>$ kubectl get sc default -o=yaml
</code></pre>
<p>✌️</p>
