<p>I have a working redis pod with gcloud persistence disk.
Sometimes when deleting the pod the following error is thrown:</p>

<pre><code>AttachVolume.Attach failed for volume "redis-volume" : GCE persistent disk not found: diskName="redis-volume" zone="europe-west3-c"
</code></pre>

<p>In case of failure deleting the pod once again resolve the issue - but this is not a sloution.</p>

<p>Using the following Kubernetes configuration:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: redis
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: redis
    spec:
      containers:
        - name: redis
          image: redis:3.2-alpine
          imagePullPolicy: Always
          args: ["--requirepass", "password", "--appendonly", "yes", "--save", "900", "1", "--save", "30", "1"]
          ports:
            - containerPort: 6379
              name: redis
          env:
          volumeMounts:
            - name: redis-volume
              mountPath: /data
      volumes:
        - name: redis-volume
          gcePersistentDisk:
            pdName: redis-volume
            fsType: ext4
</code></pre>

<p>Has any one encountered this issue? </p>

<p>I had the same problem that solved after separate the persistentvolume to the persistnetvolumeclaim.</p>

<p>The Deployment should use the claim.
<a href="https://www.youtube.com/watch?v=n06kKYS6LZE" rel="nofollow noreferrer">https://www.youtube.com/watch?v=n06kKYS6LZE</a></p>
