github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/e2e/csi/input/plugin-aws-efs-nodes.nomad (about)

     1  # jobspec for running CSI plugin for AWS EFS, derived from
     2  # the kubernetes manifests found at
     3  # https://github.com/kubernetes-sigs/aws-efs-csi-driver/tree/master/deploy/kubernetes
     4  
     5  job "plugin-aws-efs-nodes" {
     6    datacenters = ["dc1"]
     7  
     8    constraint {
     9      attribute = "${attr.kernel.name}"
    10      value     = "linux"
    11    }
    12  
    13    # you can run node plugins as service jobs as well, but this ensures
    14    # that all nodes in the DC have a copy.
    15    type = "system"
    16  
    17    group "nodes" {
    18      task "plugin" {
    19        driver = "docker"
    20  
    21        config {
    22          image = "amazon/aws-efs-csi-driver:v0.3.0"
    23  
    24          # note: the EFS driver doesn't seem to respect the --endpoint
    25          # flag and always sets up the listener at '/tmp/csi.sock'
    26          args = [
    27            "node",
    28            "--endpoint=unix://tmp/csi.sock",
    29            "--logtostderr",
    30            "--v=5",
    31          ]
    32  
    33          privileged = true
    34        }
    35  
    36        csi_plugin {
    37          id        = "aws-efs0"
    38          type      = "node"
    39          mount_dir = "/tmp"
    40        }
    41  
    42        # note: there's no upstream guidance on resource usage so
    43        # this is a best guess until we profile it in heavy use
    44        resources {
    45          cpu    = 500
    46          memory = 256
    47        }
    48      }
    49    }
    50  }