Skip to content

Commit

Permalink
Disable csi on test server
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Oct 4, 2024
1 parent 1cd0635 commit e50559b
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions jobs/http.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,30 @@ job "http" {
datacenters = ["dc1"]

group "http" {
volume "caddycerts" {
type = "csi"
source = "caddycerts"
read_only = false
access_mode = "single-node-writer"
attachment_mode = "file-system"
dynamic "volume" {
for_each = local.main ? [{}] : []
labels = ["caddycerts"]
content {
type = "csi"
source = "caddycerts"
read_only = false
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
}

task "http" {
driver = "docker"

volume_mount {
volume = "caddycerts"
destination = "/etc/caddycerts"
read_only = false
dynamic "volume_mount" {
for_each = local.main ? [{}] : []
content {
volume = "caddycerts"
destination = "/etc/caddycerts"
read_only = false
}
}

dynamic "artifact" {
for_each = local.main ? [{}] : []

Expand Down

0 comments on commit e50559b

Please sign in to comment.