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

     1  # jobspec for running CSI plugin for AWS EBS, derived from
     2  # the kubernetes manifests found at
     3  # https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/deploy/kubernetes
     4  
     5  job "plugin-aws-ebs-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-ebs-csi-driver:v0.5.0"
    23  
    24          args = [
    25            "node",
    26            "--endpoint=unix://csi/csi.sock",
    27            "--logtostderr",
    28            "--v=5",
    29          ]
    30  
    31          privileged = true
    32        }
    33  
    34        csi_plugin {
    35          id        = "aws-ebs0"
    36          type      = "node"
    37          mount_dir = "/csi"
    38        }
    39  
    40        # note: there's no upstream guidance on resource usage so
    41        # this is a best guess until we profile it in heavy use
    42        resources {
    43          cpu    = 500
    44          memory = 256
    45        }
    46      }
    47    }
    48  }