title: Can't keep data on my persistent volume in Kubernetes (Google Cloud)
body: <p>I have a Redis pod on my Kubernetes cluster on Google Cloud.
  I have built pv and the claim.</p>
  
  <pre><code>kind: PersistentVolume
  apiVersion: v1
  metadata:
    name: redis-pv
    labels:
      type: local
  spec:
    storageClassName: manual
    capacity:
      storage: my-size 
    accessModes:
      - ReadWriteOnce
    hostPath:
      path: "/data"
  ---
  apiVersion: v1
  kind: PersistentVolumeClaim
  metadata:
    labels:
      app: postgres
    name: redis-pv-claim
  spec:
    storageClassName: manual
    accessModes:
    - ReadWriteOnce
    resources:
      requests:
        storage: my size 
  </code></pre>
  
  <p>I also mounted it in my deployment.yaml</p>
  
  <pre><code>volumeMounts:
        - mountPath: /data
          name: redis-pv-claim
      volumes:
      - name: redis-pv-claim
        persistentVolumeClaim:
          claimName: redis-pv-claim  
  </code></pre>
  
  <p>I can't see any error while running describe pod</p>
  
  <pre><code>Volumes:
    redis-pv-claim:
      Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
      ClaimName:  redis-pv-claim
      ReadOnly:   false
  </code></pre>
  
  <p>But it just can't save any key. After every deployment, the "/data" folder is just empty.</p>
  
  <p>My NFS is active now but i still cant keep data .</p>
  
  <p>Describe pvc</p>
  
  <pre><code>
  Namespace:     my namespace 
  StorageClass:  nfs-client
  Status:        Bound
  Volume:        pvc-5d278b27-a51e-4262-8c1b-68b290b21fc3
  Labels:        &lt;none&gt;
  Annotations:   pv.kubernetes.io/bind-completed: yes
                 pv.kubernetes.io/bound-by-controller: yes
                 volume.beta.kubernetes.io/storage-class: nfs-client
                 volume.beta.kubernetes.io/storage-provisioner: cluster.local/ext1-nfs-client-provisioner
  Finalizers:    [kubernetes.io/pvc-protection]
  Capacity:      1Gi
  Access Modes:  RWX
  VolumeMode:    Filesystem
  Mounted By:    my grafana pod
  Events:        &lt;none&gt;
  
  </code></pre>
  
  <p>Describe pod gives me an error though.</p>
  
  <pre><code>
  Warning  FailedMount  18m   kubelet, gke-devcluster-pool-1-36e6a393-rg7d  MountVolume.SetUp failed for volume "pvc-5d278b27-a51e-4262-8c1b-68b290b21fc3" : mount failed: exit status 1
  Mounting command: systemd-run
  Mounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/pods/8f7b6630-ed9b-427a-9ada-b75e1805ed60/volumes/kubernetes.io~nfs/pvc-5d278b27-a51e-4262-8c1b-68b290b21fc3 --scope -- /
  home/kubernetes/containerized_mounter/mounter mount -t nfs 192.168.1.21:/mnt/nfs/development-test-claim-pvc-5d278b27-a51e-4262-8c1b-68b290b21fc3 /var/lib/kubelet/pods/8f7b6630-ed9b-427a-9ada-b75e1805ed60
  /volumes/kubernetes.io~nfs/pvc-5d278b27-a51e-4262-8c1b-68b290b21fc3
  Output: Running scope as unit: run-ra5925a8488ef436897bd44d526c57841.scope
  Mount failed: mount failed: exit status 32
  Mounting command: chroot
  </code></pre>