[Server] Resolving Velero Installation Error: Unknown Flag --use-restic

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

  1. Check Velero Version: Confirm the version of Velero you are using. If it is version 1.10 or later, the --use-restic flag is no longer valid.

  2. Follow Updated Documentation: Refer to the latest Velero installation guides for comprehensive instructions:

  3. Update Installation Command: Instead of using the --use-restic use --use-node-agent in 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

Additional Resources

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.