github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/demo/csi/hostpath/plugin.nomad (about)

     1  job "csi-plugin" {
     2    type        = "system"
     3    datacenters = ["dc1"]
     4  
     5    group "csi" {
     6  
     7      task "plugin" {
     8        driver = "docker"
     9  
    10        config {
    11          image = "quay.io/k8scsi/hostpathplugin:v1.2.0"
    12  
    13          args = [
    14            "--drivername=csi-hostpath",
    15            "--v=5",
    16            "--endpoint=${CSI_ENDPOINT}",
    17            "--nodeid=node-${NOMAD_ALLOC_INDEX}",
    18          ]
    19  
    20          privileged = true
    21        }
    22  
    23        csi_plugin {
    24          id        = "hostpath-plugin0"
    25          type      = "monolith" #node" # doesn't support Controller RPCs
    26          mount_dir = "/csi"
    27        }
    28  
    29        resources {
    30          cpu    = 256
    31          memory = 128
    32        }
    33      }
    34    }
    35  }