f930ca1c8071672378a5489a453693c58020db1b
Some checks failed
Deploy CSI Jobs / deploy (push) Failing after 11s
- csi/volumes/moneymaker-data.hcl: CSI volume (1-10G, single-node-writer) - jobs/moneymaker.nomad: migrated from host to CSI volume, removed consul constraint
nomad-csi
Nomad CSI storage for i80.dk — democratic-csi + NFS on int.i80.dk.
Architecture
- NFS server:
int.i80.dkexports/opt/csi-volumesto 192.168.15.0/24 - CSI driver: democratic-csi v1.9.0
- Plugin ID:
org.democratic-csi.nfs
Deploy
# One-time: deploy CSI controller + node plugin
nomad job run csi/controller.nomad
nomad job run csi/node.nomad
# Verify
nomad plugin status org.democratic-csi.nfs
Create a volume
# Edit csi/volumes/example.hcl with your id/name/size, then:
nomad volume create csi/volumes/my-volume.hcl
# Volumes are persistent — only deleted explicitly:
nomad volume delete my-volume-id
Use in a job
volume "data" {
type = "csi"
source = "my-volume-id"
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
# ...in the task:
volume_mount {
volume = "data"
destination = "/data"
}
Expanding to all workers
When ready, update csi/node.nomad:
- Change
type = "service"→type = "system" - Remove the
constraintblock
Workers need nfs-common installed (via Ansible storage.yml playbook).
Description
Languages
HCL
100%