From 54f94ecd6744ecf0d78c859b59ad34b2437b7d23 Mon Sep 17 00:00:00 2001 From: Steve Kriss Date: Mon, 11 Nov 2019 15:07:55 -0700 Subject: [PATCH] add docs for using restic with Azure File (#2054) Signed-off-by: Steve Kriss --- site/docs/master/restic.md | 14 ++++++++++++++ site/docs/v1.2.0/restic.md | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/site/docs/master/restic.md b/site/docs/master/restic.md index 4817bab4e..1952b5208 100644 --- a/site/docs/master/restic.md +++ b/site/docs/master/restic.md @@ -109,6 +109,18 @@ hostPath: path: /var/vcap/data/kubelet/pods ``` +**Microsoft Azure** + +If you are using [Azure Files][8], you need to add `nouser_xattr` to your storage class's `mountOptions`. See [this restic issue][9] for more details. + +You can use the following command to patch the storage class: + +```bash +kubectl patch storageclass/ \ + --type json \ + --patch '[{"op":"add","path":"/mountOptions/-","value":"nouser_xattr"}]' +``` + You're now ready to use Velero with restic. ## Back up @@ -378,3 +390,5 @@ To solve this, a controller was written by Thomann Bits&Beats: [velero-pvc-watch [5]: http://restic.readthedocs.io/en/latest/100_references.html#terminology [6]: https://kubernetes.io/docs/concepts/storage/volumes/#mount-propagation [7]: https://github.com/bitsbeats/velero-pvc-watcher +[8]: https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv +[9]: https://github.com/restic/restic/issues/1800 diff --git a/site/docs/v1.2.0/restic.md b/site/docs/v1.2.0/restic.md index 4817bab4e..1952b5208 100644 --- a/site/docs/v1.2.0/restic.md +++ b/site/docs/v1.2.0/restic.md @@ -109,6 +109,18 @@ hostPath: path: /var/vcap/data/kubelet/pods ``` +**Microsoft Azure** + +If you are using [Azure Files][8], you need to add `nouser_xattr` to your storage class's `mountOptions`. See [this restic issue][9] for more details. + +You can use the following command to patch the storage class: + +```bash +kubectl patch storageclass/ \ + --type json \ + --patch '[{"op":"add","path":"/mountOptions/-","value":"nouser_xattr"}]' +``` + You're now ready to use Velero with restic. ## Back up @@ -378,3 +390,5 @@ To solve this, a controller was written by Thomann Bits&Beats: [velero-pvc-watch [5]: http://restic.readthedocs.io/en/latest/100_references.html#terminology [6]: https://kubernetes.io/docs/concepts/storage/volumes/#mount-propagation [7]: https://github.com/bitsbeats/velero-pvc-watcher +[8]: https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv +[9]: https://github.com/restic/restic/issues/1800