velero configure-gcp
Configures snapshots to use a Google Cloud Platform Object Storage Bucket as a storage destination. This command supports auth via Serivce Account Credentials or Workload Identity.
Valid Subcommands:
service-account
workload-identity
Usage
kubectl kots velero configure-gcp [subcommand]
Flag | Type | Description |
---|---|---|
-h, --help | help for configure-aws-s3 |
service-account
kubectl kots velero configure-gcp service-account [flags]
- Provide
[flags]
according to the table below
Flag | Type | Description |
---|---|---|
-h, --help | help for access-key | |
-n, --namespace | string | the namespace of the Admin Console (required) |
--bucket | string | name of the object storage bucket where backups should be stored (required) |
--json-file | string | path to JSON credntials file for veloro (required) |
--path | string | path to a subdirectory in the object store bucket |
--skip-validation | bool | skip the validation of the GCP Bucket (default false ) |
Example
kubectl kots velero configure-gcp service-account --namespace default --bucket velero-backups --json-file sa-creds.json
workload-identity
kubectl kots velero configure-gcp workload-identity [flags]
- Provide
[flags]
according to the table below
Flag | Type | Description |
---|---|---|
-h, --help | help for access-key | |
-n, --namespace | string | the namespace of the Admin Console (required) |
--bucket | string | name of the object storage bucket where backups should be stored (required) |
--path | string | path to a subdirectory in the object store bucket |
--service-account | string | the service account to use if using Google Cloud instance role (required) |
--skip-validation | bool | skip the validation of the GCP Bucket (default false ) |
Example
kubectl kots velero configure-gcp workload-identity --namespace default --bucket velero-backups --service-account ss-velero@gcp-project.iam.gserviceaccount.com