Currently azure cloud provide only supports azure disk snapshot, and azure file plugin is also a common storage layer which could provide multiple read/write.
Azure file snapshot doc:
https://docs.microsoft.com/en-us/azure/storage/files/storage-snapshots-files
@rosskukulinski
I could also do the code review work of all azure part since I have been working on k8s on azure storage for a long time.
@andyzhangx what would the mechanics be around restores? With Azure managed disks, for example, we create a new managed disk from a snapshot and associate that with the Kubernetes PersistentVolume. Could we do something similar with Azure files - can we create a new "share" from a snapshot and associate that with a PV? Or how would you envision this working? Thanks!
Yes, azure file pvc is like azure disk pvc. It's using different protocol and support multiple readwrite.
And its apiVersion requires >= 2017-04-17, see RESET api here:
https://docs.microsoft.com/en-us/rest/api/storageservices/snapshot-share
Hi @ncdc , is there any good news about this issue? Thank you!
@moebius87 nobody has picked this up to work on it, but it sounds like there's a good chance that a plugin could be developed for this. I'm happy to do a little R&D and provide some direction if someone wants to work on it!
Update: we are already implementing azure file snapshot functionality in https://github.com/kubernetes-sigs/azurefile-csi-driver, currently azure file does not provide a restore sdk for this functionality, and we are expecting azure file team to provide a v2 sdk to cover this functionality. I think we could wait until that restore function is released, stay tuned.
@andyzhangx any update on the restore SDK? There have been several folks inquiring about Azure File support lately, and they're having to default to using restic since we don't have a snapshotter plugin.
@andyzhangx any update on the restore SDK? There have been several folks inquiring about Azure File support lately, and they're having to default to using restic since we don't have a snapshotter plugin.
No update from azure file team now, I will let you know when that feature is released. @skriss
Also really need this! There is no way to properly snapshot/backup my azurefile at this point
Yes, it's a big lack.
Any update on this? I really need this feature and I would like to know if it's on the roadmap
For those who are looking at velero for solve this issue, there is a workaround: Velero Restic plugin so restic will be in charge to backup file shares just with a POD annotation.
I haven't tested yet. I'll let you know in the few weeks when I test it
To use restic for a specific pod, add an annotation to specify which volumes to include:
~
backup.velero.io/backup-volumes: "data"
~
Velero restore-process remains the same.
I prefer this opt-in model. Read more here.
Most helpful comment
Update: we are already implementing azure file snapshot functionality in https://github.com/kubernetes-sigs/azurefile-csi-driver, currently azure file does not provide a restore sdk for this functionality, and we are expecting azure file team to provide a v2 sdk to cover this functionality. I think we could wait until that restore function is released, stay tuned.