Velero is a great tool to do full backup/restore your k8s cluster ,but sometime you need to clean install it this is how.
#!/bin/bashvelero uninstall
kubectl delete ns velero
kubectl delete ResticRepository -n velero $(kubectl get ResticRepository -n velero -o jsonpath='{.items[*].metadata.name}')velero install \
-n velero \
--provider aws \
--plugins velero/velero-plugin-for-aws:v1.2.1 \
--bucket velero \
--secret-file ./credentials-velero \
--default-volumes-to-restic=true \
--use-volume-snapshots=true \
--backup-location-config region=minio,s3ForcePathStyle="true",s3Url=https://velero.myvelero.io \
--use-restic --wait -n velero ; kubectl logs -f deployment/velero -n velero
verify
kubectl get BackupStorageLocation default -n velero -o yaml
done