github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/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:v1.3.6"
    23          args = [
    24            "node",
    25            "--endpoint=${CSI_ENDPOINT}",
    26            "--logtostderr",
    27            "--v=5",
    28          ]
    29  
    30          privileged = true
    31        }
    32  
    33        # note: the EFS driver doesn't seem to respect the --endpoint
    34        # flag or CSI_ENDPOINT env var and always sets up the listener
    35        # at '/tmp/csi.sock'
    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  }