Skip to content

Commit

Permalink
Merge pull request #7892 from hashicorp/f-e2e-connect-use-expose-serv…
Browse files Browse the repository at this point in the history
…ice-check

e2e: set an expose service check in connect e2e testcase
  • Loading branch information
shoenig authored May 8, 2020
2 parents f5c84fc + e54698e commit 320a757
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions e2e/connect/input/demo.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,22 @@ job "countdash" {
connect {
sidecar_service {}
}

check {
expose = true
name = "api-health"
type = "http"
path = "/health"
interval = "5s"
timeout = "3s"
}
}

task "web" {
driver = "docker"

config {
image = "hashicorpnomad/counter-api:v1"
image = "hashicorpnomad/counter-api:v2"
}
}
}
Expand Down Expand Up @@ -63,7 +72,7 @@ job "countdash" {
}

config {
image = "hashicorpnomad/counter-dashboard:v1"
image = "hashicorpnomad/counter-dashboard:v2"
}
}
}
Expand Down

0 comments on commit 320a757

Please sign in to comment.