github.com/hernad/nomad@v1.6.112/e2e/csi/input/plugin-aws-efs-nodes.nomad (about)

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