Skip to content

Commit

Permalink
feat(csi): add a csi hostpath controller (#72)
Browse files Browse the repository at this point in the history
feat(csi): add a csi hostpath controller
feat(csi): add volume definition for hostpath plugin

Signed-off-by: Bruce Becker <brucellino@protonmail.com>

---------

Signed-off-by: Bruce Becker <brucellino@protonmail.com>
  • Loading branch information
brucellino authored Oct 27, 2023
1 parent 92baf6f commit 33ada11
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
18 changes: 18 additions & 0 deletions csi-hostpath-volume.nomad
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
id = "consul-data"
namespace = "default"
name = "consul-data"
type = "csi"
plugin_id = "csi-hostpath"
external_id = "consul-data"
capacity_max = "1G"
capacity_min = "100M"

capability {
access_mode = "single-node-writer"
attachment_mode = "file-system"
}

mount_options {
fs_type = "ext4"
mount_flags = ["noatime"]
}
25 changes: 25 additions & 0 deletions csi-volume-hostpath.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
id = "grafana"
name = "grafana"
type = "csi"
plugin_id = "csi-hostpath"

capacity_min = "1MB"
capacity_max = "1GB"

capability {
access_mode = "single-node-reader-only"
attachment_mode = "file-system"
}
capability {
access_mode = "multi-node-reader-only"
attachment_mode = "file-system"
}

capability {
access_mode = "single-node-writer"
attachment_mode = "file-system"
}

mount_options {
mount_flags = ["rw"]
}

0 comments on commit 33ada11

Please sign in to comment.