diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-04-18 12:26:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-18 12:26:44 -0700 |
| commit | d2adcc90e89eb839e1f100c273bef044b772ba4b (patch) | |
| tree | f8d6a191db3136efb044c4b1927621cc89d94fb3 /deploy/nomad/example-seaweedfs-volume.hcl | |
| parent | c2ec139c1c34f7d6653b7094fdb97c8117e1c1be (diff) | |
| parent | 8c70bb5b9f6e1de2b447ba40e62ab240f00e383d (diff) | |
| download | seaweedfs-csi-driver-d2adcc90e89eb839e1f100c273bef044b772ba4b.tar.xz seaweedfs-csi-driver-d2adcc90e89eb839e1f100c273bef044b772ba4b.zip | |
Merge pull request #60 from mateuszkj/master
Hashicorp Nomad deploy example
Diffstat (limited to 'deploy/nomad/example-seaweedfs-volume.hcl')
| -rw-r--r-- | deploy/nomad/example-seaweedfs-volume.hcl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/deploy/nomad/example-seaweedfs-volume.hcl b/deploy/nomad/example-seaweedfs-volume.hcl new file mode 100644 index 0000000..3a5fb66 --- /dev/null +++ b/deploy/nomad/example-seaweedfs-volume.hcl @@ -0,0 +1,26 @@ +id = "example-seaweedfs-volume" +name = "example-seaweedfs-volume" +type = "csi" +plugin_id = "seaweedfs" + +capacity_min = "256GiB" +capacity_max = "512GiB" + +capability { + access_mode = "multi-node-multi-writer" + attachment_mode = "file-system" +} + +# Optional: for 'nomad volume create', specify mount options to validate for +# 'attachment_mode = "file-system". Registering an existing volume will record +# but ignore these fields. +mount_options { + mount_flags = ["rw"] +} + +parameters { + # Available options: https://github.com/seaweedfs/seaweedfs-csi-driver/blob/master/pkg/driver/mounter_seaweedfs.go + collection = "example" + replication = "000" + path = "/buckets/example" +} |
