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

     1  # Copyright (c) HashiCorp, Inc.
     2  # SPDX-License-Identifier: MPL-2.0
     3  
     4  # jobspec for running CSI plugin for AWS EBS, derived from
     5  # the kubernetes manifests found at
     6  # https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/deploy/kubernetes
     7  
     8  job "plugin-aws-ebs-nodes" {
     9    datacenters = ["dc1", "dc2"]
    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 = "public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver:v1.5.1"
    26  
    27          args = [
    28            "node",
    29            "--endpoint=${CSI_ENDPOINT}",
    30            "--logtostderr",
    31            "--v=5",
    32          ]
    33  
    34          privileged = true
    35        }
    36  
    37        csi_plugin {
    38          id        = "aws-ebs0"
    39          type      = "node"
    40          mount_dir = "/csi"
    41        }
    42  
    43        # note: there's no upstream guidance on resource usage so
    44        # this is a best guess until we profile it in heavy use
    45        resources {
    46          cpu    = 500
    47          memory = 256
    48        }
    49      }
    50    }
    51  }