Velero microk8s

From UVOO Tech Wiki
Revision as of 08:13, 2 July 2023 by Busk (talk | contribs)
Jump to navigation Jump to search

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