--- title: "Velero Install CLI" layout: docs --- This document serves as a guide to using the `velero install` CLI command to install `velero` server components into your Kubernetes cluster. _NOTE_: `velero install` will, by default, use the CLI's version information to determine the version of the server components to deploy. This behavior may be overridden by using the `--image` flag. Refer to [Building Server Component Container Images][1]. ## Usage This section explains some of the basic flags supported by the `velero install` CLI command. For a complete explanation of the flags, please run `velero install --help` ```bash velero install \ --plugins --provider \ --bucket \ --secret-file \ --velero-pod-cpu-request \ --velero-pod-mem-request \ --velero-pod-cpu-limit \ --velero-pod-mem-limit \ --kubelet-root-dir \ [--use-node-agent] \ [--default-volumes-to-fs-backup] \ [--node-agent-pod-cpu-request ] \ [--node-agent-pod-mem-request ] \ [--node-agent-pod-cpu-limit ] \ [--node-agent-pod-mem-limit ] \ [--maintenance-job-cpu-request ] \ [--maintenance-job-mem-request ] \ [--maintenance-job-cpu-limit ] \ [--maintenance-job-mem-limit ] \ [--server-priority-class-name ] \ [--node-agent-priority-class-name ] ``` The values for the resource requests and limits flags follow the same format as [Kubernetes resource requirements][3] For plugin container images, please refer to our [supported providers][2] page. The `--server-priority-class-name` and `--node-agent-priority-class-name` flags allow you to set priority classes for the Velero server deployment and node agent daemonset respectively. This can help ensure proper scheduling and eviction behavior in resource-constrained environments. Note that you must create the priority class before installing Velero. ## Examples This section provides examples that serve as a starting point for more customized installations. ```bash velero install --provider gcp --plugins velero/velero-plugin-for-gcp:v1.0.0 --bucket mybucket --secret-file ./gcp-service-account.json velero install --provider aws --plugins velero/velero-plugin-for-aws:v1.0.0 --bucket backups --secret-file ./aws-iam-creds --backup-location-config region=us-east-2 --snapshot-location-config region=us-east-2 --use-node-agent velero install --provider azure --plugins velero/velero-plugin-for-microsoft-azure:v1.0.0 --bucket $BLOB_CONTAINER --secret-file ./credentials-velero --backup-location-config resourceGroup=$AZURE_BACKUP_RESOURCE_GROUP,storageAccount=$AZURE_STORAGE_ACCOUNT_ID[,subscriptionId=$AZURE_BACKUP_SUBSCRIPTION_ID] --snapshot-location-config apiTimeout=[,resourceGroup=$AZURE_BACKUP_RESOURCE_GROUP,subscriptionId=$AZURE_BACKUP_SUBSCRIPTION_ID] ``` [1]: build-from-source.md#making-images-and-updating-velero [2]: supported-providers.md [3]: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/