unikraft volumes
unikraft volumes create
Create a volume.
Codeunikraft volumes create [flags]
Examples
Create a new volume:
Codeunikraft volume create \ --name demo-volume \ --size 10 \ --metro fra
Options
Code--access-mode access-mode How instances can mount the volume. rwo: one read-write mount or many read-only mounts (default) rox: read-only mounts only rwx: many read-write mounts, virtiofs only, with guest caching off --cmd CMD Run a command to edit fields (receives YAML on stdin, outputs edited YAML on stdout). --dry-run Print patches without applying them. -f, --field FIELD Specify which fields to include in the output. --filesystem filesystem Filesystem for a new volume: ext4 (default) or virtiofs, depending on what the deployment offers. --load LOAD Load fields from a YAML file. --metro metro Metro to create in. Defaults to the profile's default metro. -n, --name name Volume name, unique per metro among volumes and volume templates. Generated when omitted. --node node Node to place the volume on. -o, --output OUTPUT Output format. One of: kv, table, json, yaml, raw, quiet, template. --quota-policy quota-policy How the volume counts against your quota. On edit the volume must not be mounted. static: reserve the full size (default) dynamic: count only used space and allow overcommit, not for ext4 volumes --save FILE Save creatable fields as YAML to a file (use - for stdout). --set <name>=<value> Key-value pairs to set on the volume. --set-file <name>=<filename> Files containing key-value pairs to set on the volume. --size size Volume size, within the range the plan allows (see quotas.limits.volume on the metro). Only virtiofs volumes can be resized, and not below their current usage. --tag tag Tags for grouping and filtering: up to 16, each 1 to 256 characters of letters, digits and -+_.:=. Not visible to the guest. --template name Clone a volume template, by name or UUID, instead of creating an empty volume. --visual Open an editor to modify fields visually.
Options inherited from parent commands
Code--config file Path to the configuration file. --log-level level Set the logging level. (default info) --log-type type Set the log type. (default text) --profile name Set the current profile. --telemetry Toggle usage analytics. (default true) --timeout duration Set a deadline for the command (e.g. 30s, 5m, 1h).
See Also
unikraft volumes: Manage Unikraft Cloud volumes.
Last modified on