title: Kubernetes : PVC binding status in pending
body: <p>I create a PV and claimed the PV through PVC. I see that PV is created but the PVC binding status is stuck in pending.When i looked at the describe pvc output , I see that no persistent volumes available for this claim and no storage class is set. From the documentation I understand that storage class isnt mandatory . So, am unsure on what's missing in the PVC file.</p>
  
  <pre><code>apiVersion: v1
  
  kind: PersistentVolume
  
  metadata:
    name: pv-ghost
    labels:
      pv: pv-ghost
  
  spec:
    accessModes:
      - ReadWriteMany
    capacity:
      storage: 3Gi
  
    hostPath:
      path: /ghost/data
  --------------------------
  apiVersion: v1
  
  kind: PersistentVolumeClaim
  
  metadata:
    name: pvc-ghost
  
  spec:
    accessModes:
      - ReadWriteMany
  
    resources:
      requests:
        storage: 5Gi
    selector:
      matchLabels:
        pv: pv-ghost
  </code></pre>
  
  <p>Out of describe PV and PVC</p>
  
  <pre><code>    kubectl describe pv pv-ghost
      Name:            pv-ghost
      Labels:          pv=pv-ghost
      Annotations:     &lt;none&gt;
      Finalizers:      [kubernetes.io/pv-protection]
      StorageClass:
      Status:          Available
      Claim:
      Reclaim Policy:  Retain
      Access Modes:    RWX
      Capacity:        3Gi
      Node Affinity:   &lt;none&gt;
      Message:
      Source:
          Type:          HostPath (bare host directory volume)
          Path:          /ghost/data
          HostPathType:
      Events:            &lt;none&gt;
  kubectl describe pvc pvc-ghost
  Name:          pvc-ghost
  Namespace:     default
  StorageClass:
  Status:        Pending
  Volume:
  Labels:        &lt;none&gt;
  Annotations:   &lt;none&gt;
  Finalizers:    [kubernetes.io/pvc-protection]
  Capacity:
  Access Modes:
  Events:
    Type       Reason         Age                  From                         Message
    ----       ------         ----                 ----                         -------
    Normal     FailedBinding  8m44s (x8 over 10m)  persistentvolume-controller  no persistent volumes available for this claim and no storage class is set
    Normal     FailedBinding  61s (x5 over 2m3s)   persistentvolume-controller  no persistent volumes available for this claim and no storage class is set
  Mounted By:  &lt;none&gt;
  </code></pre>