Hi! Could you help me please with creation of volume using nomad volume create
?
My volume.hcl specification:
id = "smb0"
name = "samba cifs"
type = "csi"
external_id = "vol-0b756b75620d63af5"
plugin_id = "csi-hostpath"
capability {
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
secrets {
username = "<username>"
password = "<password>"
}
context {
source = "<source>"
}
Result on running nomad volume create volume.hcl
:
Error registering volume: Unexpected response code: 500 (validation: missing access mode, missing attachment mode)
I tried to specify access_mode
and attachment_mode
both in capabilities stanza and in root section. Do i do something wrong?