mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
Adds a `-type` flag to the `volume init` command that generates an example volume specification with only those fields relevant to dynamic host volumes. This changeset also moves the string literals into uses of `go:embed` Ref: https://github.com/hashicorp/nomad/pull/24479
29 lines
782 B
HCL
29 lines
782 B
HCL
id = "disk_prod_db1"
|
|
namespace = "default"
|
|
name = "database"
|
|
type = "host"
|
|
plugin_id = "plugin_id"
|
|
|
|
# Optional: for 'nomad volume create', specify a maximum and minimum capacity.
|
|
# Registering an existing volume will record but ignore these fields.
|
|
capacity_min = "10GiB"
|
|
capacity_max = "20G"
|
|
|
|
# Required (at least one): for 'nomad volume create', specify one or more
|
|
# capabilities to validate. Registering an existing volume will record but
|
|
# ignore these fields.
|
|
capability {
|
|
access_mode = "single-node-writer"
|
|
attachment_mode = "file-system"
|
|
}
|
|
|
|
capability {
|
|
access_mode = "single-node-reader"
|
|
attachment_mode = "block-device"
|
|
}
|
|
|
|
# Optional: provide a map of keys to string values expected by the plugin.
|
|
parameters {
|
|
skuname = "Premium_LRS"
|
|
}
|