Difference between revisions of "Velero microk8s"
Jump to navigation
Jump to search
(Created page with "https://discuss.kubernetes.io/t/backup-a-cluster-with-velero/19034") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | https://github.com/openebs/zfs-localpv/blob/develop/docs/backup-restore.md | ||
+ | |||
+ | https://microk8s.io/docs/velero | ||
+ | |||
+ | ``` | ||
+ | sudo microk8s kubectl -n velero patch daemonset.apps/restic --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/volumes/0/hostPath/path", "value":"/var/snap/microk8s/common/var/lib/kubelet/pods"}]' | ||
+ | ``` | ||
+ | or | ||
+ | ``` | ||
+ | kubectl -n velero patch daemonset.apps/restic --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/volumes/0/hostPath/path", "value":"/var/snap/microk8s/common/var/lib/kubelet/pods"}]' | ||
+ | |||
+ | ``` | ||
+ | |||
https://discuss.kubernetes.io/t/backup-a-cluster-with-velero/19034 | https://discuss.kubernetes.io/t/backup-a-cluster-with-velero/19034 | ||
+ | |||
+ | |||
+ | ## Errors & Warnings | ||
+ | ``` | ||
+ | velero backup logs example-3209 | grep -i warn | ||
+ | time="2023-07-02T08:06:54Z" level=warning msg="Volume nginx-logs in pod example/nginx-599f468f8-nlj85 is a hostPath volume which is not supported for pod volume backup, skipping" backup=velero/example-3209 logSource="pkg/podvolume/backupper.go:210" name=nginx-599f468f8-nlj85 namespace=example resource=pods | ||
+ | ``` | ||
+ | |||
+ | # ZFS | ||
+ | - https://github.com/jeremybusk/k8s-cluster/blob/main/INSTALL.md | ||
+ | - https://tech.uvoo.io/index.php/K8s_zfs_storage_class | ||
+ | ``` | ||
+ | ``` |
Latest revision as of 15:58, 2 July 2023
https://github.com/openebs/zfs-localpv/blob/develop/docs/backup-restore.md
https://microk8s.io/docs/velero
sudo microk8s kubectl -n velero patch daemonset.apps/restic --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/volumes/0/hostPath/path", "value":"/var/snap/microk8s/common/var/lib/kubelet/pods"}]'
or
kubectl -n velero patch daemonset.apps/restic --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/volumes/0/hostPath/path", "value":"/var/snap/microk8s/common/var/lib/kubelet/pods"}]'
https://discuss.kubernetes.io/t/backup-a-cluster-with-velero/19034
Errors & Warnings
velero backup logs example-3209 | grep -i warn time="2023-07-02T08:06:54Z" level=warning msg="Volume nginx-logs in pod example/nginx-599f468f8-nlj85 is a hostPath volume which is not supported for pod volume backup, skipping" backup=velero/example-3209 logSource="pkg/podvolume/backupper.go:210" name=nginx-599f468f8-nlj85 namespace=example resource=pods