vessl storage
Overview
Run vessl storage --help
to view the list of commands, or vessl storage [COMMAND] --help
to view individual command instructions.
Commands
Create an external storage
Argument | Description |
---|---|
NAME | Name of the storage |
Option | Description |
---|---|
--storage-type | (Required) Type of the storage. Options: s3, gcs, nfs, host-path. |
--path | (Required) Path to the storage. The format depends on the storage type:
|
--credential-name | Credential name registered in vessl credentials. This option is only required when storage type is |
--cluster-name | Cluster name of registered in vessl. This option is only required when storage type is |
VESSL External Storage acts as a bridge to external storage services (e.g., S3, GCS, etc.). Make sure to configure the external storage settings before proceeding.
If you do not want to use external storage, you can use the default VESSL storage, vessl-storage
.
Examples
- Create an S3 storage:
- Create a GCS(Google Cloud Storage) storage:
- Create an NFS storage:
- Create a Host-Path storage:
List all storages
Delete an external storage
Argument | Description |
---|---|
NAME | Name of the storage |
Create a volume in storage
Argument | Description |
---|---|
NAME | Name of the volume |
Option | Description |
---|---|
--storage-name | (Required) Name of the storage. |
--tag | Tag(s) of the storage. You can attach multiple tags by specifying this option multiple times. |
List volumes in storage
Option | Description |
---|---|
--storage-name | (Required) Name of the storage. |
--keyword | Keyword to search for. |
Delete volume in storage
Argument | Description |
---|---|
NAME | Name of the volume |
Option | Description |
---|---|
--storage-name | (Required) Name of the storage. |
Copy a volume file
You can copy a file or directory either from local to a VESSL volume or from a VESSL volume to a local path.
Argument | Description |
---|---|
SOURCE | Source path. The source can be either a local file path or a VESSL volume. If the source is a VESSL volume, |
DEST | Destination path. The destination can be either a local file path or a VESSL volume. If the destination is a VESSL volume, |
SOURCE
or DEST
) must be a local path, and the other must be a VESSL volume path.Examples
- Copy a local file to a VESSL volume:
- Copy a directory from a VESSL volume to a local path:
List a volume file
Argument | Description |
---|---|
PATH | VESSL volume path. PATH must follow the format: vessl://{STORAGE_NAME}/{VOLUME_NAME} |
Delete a volume file
Argument | Description |
---|---|
PATH | VESSL volume path. PATH must follow the format: vessl://{STORAGE_NAME}/{VOLUME_NAME}/{FILE_PATH} |
Option | Description |
---|---|
-r , --recursive | Required if target file is a directory |