Files
nomad/demo/hostvolume/no-plugin.volume.hcl
Tim Gross 4a65b21aab dynamic host volumes: send register to client for fingerprint (#24802)
When we register a volume without a plugin, we need to send a client RPC so that
the node fingerprint can be updated. The registered volume also needs to be
written to client state so that we can restore the fingerprint after a restart.

Co-authored-by: Daniel Bennett <dbennett@hashicorp.com>
2025-01-08 16:58:58 -05:00

16 lines
449 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
name = "no-plugin"
type = "host"
# this volume spec can be used with 'volume register' after filling in the
# host_path and node_id values below
host_path = "TODO" # absolute path of the volume that was created out-of-band
node_id = "TODO" # ID of the node where the volume was created
capability {
access_mode = "single-node-writer"
attachment_mode = "file-system"
}