3

I currently have a managed Azure disk created from a Azure disk snapshot of a Kubernetes Persistent Volume that no longer exists.

I would like to know how to reuse the restored disk in a new 'PersistentVolumeClaim', otherwise K8s will request Azure to create a new empty disk.

My current K8s PersistentVolumeClaim config:

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: jenkins-master-vol-claim
  annotations: 
    volume.beta.kubernetes.io/storage-class: managed-standard
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 10Gi
  • Wouldn't it be possible to 'restore' this snapshot into the newly created volume handled by k8s ? – Tensibai Nov 14 '17 at 16:25
  • I've tried that, but it looks like Azure allows us only to use a 'disk snapshot' as a 'parameter' to create the new disk. – Ygor Thomaz Nov 14 '17 at 20:09
  • In other words, one existing managed disk can't use a snapshot from another disk. – Ygor Thomaz Nov 14 '17 at 20:15
  • @YgorThomaz Could you post the comments as an answer? – 030 Nov 26 '17 at 20:18
  • I have a similar question which I asked here: stackoverflow.com/questions/48774021/… – anschoewe Feb 13 '18 at 22:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.