Difference between revisions of "Velero microk8s"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
``` | ``` | ||
− | 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"}] | + | 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 |
Revision as of 07:03, 2 July 2023
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