Overview
When installing Velero using old CircleCI documentation, users may encounter an error message: An error occurred: unknown flag: --use-restic. This issue arises because the --use-restic flag has been replaced by --use-node-agent starting from Velero version 1.10. This article provides guidance on resolving this error by following the updated installation instructions.
Prerequisites
Ensure you have access to your Kubernetes cluster
Verify the version of Velero you are using to ensure compatibility with the updated flags.
Solution
Check Velero Version: Confirm the version of Velero you are using. If it is version 1.10 or later, the
--use-resticflag is no longer valid.Follow Updated Documentation: Refer to the latest Velero installation guides for comprehensive instructions:
Update Installation Command: Instead of using the
--use-resticuse--use-node-agentin your installation command. Here is a sample of the command:velero install \ --provider aws \ --plugins velero/velero-plugin-for-aws:v1.8.2 \ --bucket circleci-server-velero-backup-bucket \ --secret-file ./cred/credentials-velero \ --backup-location-config region=ap-northeast-1 \ --snapshot-location-config region=ap-northeast-1 \ --use-node-agent