github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/e2e/csi/input/plugin-aws-ebs-controller.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-controller" {
     6    datacenters = ["dc1"]
     7  
     8    constraint {
     9      attribute = "${attr.kernel.name}"
    10      value     = "linux"
    11    }
    12  
    13    group "controller" {
    14      task "plugin" {
    15        driver = "docker"
    16  
    17        config {
    18          image = "amazon/aws-ebs-csi-driver:v0.5.0"
    19  
    20          args = [
    21            "controller",
    22            "--endpoint=unix://csi/csi.sock",
    23            "--logtostderr",
    24            "--v=5",
    25          ]
    26  
    27          # note: plugins running as controllers don't
    28          # need to run as privileged tasks
    29        }
    30  
    31        csi_plugin {
    32          id        = "aws-ebs0"
    33          type      = "controller"
    34          mount_dir = "/csi"
    35        }
    36  
    37        # note: there's no upstream guidance on resource usage so
    38        # this is a best guess until we profile it in heavy use
    39        resources {
    40          cpu    = 500
    41          memory = 256
    42        }
    43      }
    44    }
    45  }