title: Kubernetes - PVC not binding the NFS PV
body: <p>I created a physical volume using NFS and PVC for the same volume. However, the PVC always creates a EBS disk storage instead of binding to the PV. Please see the log below:</p>
  
  <pre><code>&gt; kubectl get pv
  NAME      CAPACITY   ACCESSMODES   RECLAIMPOLICY   STATUS      CLAIM     STORAGECLASS   REASON    AGE
  mynfspv   100Gi      RWX           Retain          Available                                      7s
  </code></pre>
  
  <p>create PVC now</p>
  
  <pre><code>&gt; kubectl get pvc
  NAME       STATUS    VOLUME                                     CAPACITY   ACCESSMODES   STORAGECLASS   AGE
  mynfspvc   Bound     pvc-a081c470-3f23-11e7-9d30-024e42ef6b60   100Gi      RWX           default        4s
  
  
  &gt; kubectl get pv
  NAME                                       CAPACITY   ACCESSMODES   RECLAIMPOLICY   STATUS      CLAIM              STORAGECLASS   REASON    AGE
  mynfspv                                    100Gi      RWX           Retain          Available                                               50s
  pvc-a081c470-3f23-11e7-9d30-024e42ef6b60   100Gi      RWX           Delete          Bound       default/mynfspvc   default                  17s
  </code></pre>
  
  <p>nfs-pv.yaml</p>
  
  <pre><code>apiVersion: v1
  kind: PersistentVolume
  metadata:
    name: mynfspv
    labels:
      name: nfs2
  spec:
    capacity:
      storage: 100Gi
    accessModes:
      - ReadWriteMany
    persistentVolumeReclaimPolicy: Retain
    nfs:
      server: dbc56.efs.us-west-2.amazonaws.com
      path: /
  </code></pre>
  
  <p>nfs-pvc.yaml</p>
  
  <pre><code>kind: PersistentVolumeClaim
  apiVersion: v1
  metadata:
    name: mynfspvc
  spec:
    accessModes:
      - ReadWriteMany
    resources:
      requests:
        storage: 100Gi
  </code></pre>