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