github.com/hernad/nomad@v1.6.112/e2e/csi/input/plugin-aws-ebs-controller.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-controller" { 9 datacenters = ["dc1", "dc2"] 10 11 constraint { 12 attribute = "${attr.kernel.name}" 13 value = "linux" 14 } 15 16 spread { 17 attribute = "${node.unique.id}" 18 } 19 20 group "controller" { 21 22 count = 2 // HA for node drain testing 23 24 task "plugin" { 25 driver = "docker" 26 27 config { 28 image = "public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver:v1.5.1" 29 30 args = [ 31 "controller", 32 "--endpoint=${CSI_ENDPOINT}", 33 "--logtostderr", 34 "--v=5", 35 ] 36 37 # note: plugins running as controllers don't 38 # need to run as privileged tasks 39 } 40 41 csi_plugin { 42 id = "aws-ebs0" 43 type = "controller" 44 mount_dir = "/csi" 45 } 46 47 # note: there's no upstream guidance on resource usage so 48 # this is a best guess until we profile it in heavy use 49 resources { 50 cpu = 500 51 memory = 256 52 } 53 } 54 } 55 }