job "csi-nfs-controller" { datacenters = ["dc1"] type = "service" namespace = "default" # Pin controller to int — NFS server lives here constraint { attribute = "${node.unique.name}" value = "int" } group "controller" { count = 1 task "plugin" { driver = "docker" config { image = "democraticcsi/democratic-csi:latest" command = "/bin/democratic-csi" args = [ "--csi-version=1.5.0", "--csi-name=org.democratic-csi.nfs", "--driver-config-file=${NOMAD_TASK_DIR}/driver-config-file.yaml", "--log-level=info", "--csi-mode=controller", "--server-socket=${CSI_ENDPOINT}", ] volumes = [ "/opt/csi-volumes:/opt/csi-volumes", ] privileged = true } csi_plugin { id = "org.democratic-csi.nfs" type = "controller" mount_dir = "/csi" } template { data = <