-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(esm): add consul external services management job (#120)
feat(esm): add consul external services management job ci: update tailscale version in CI runners chore: update pre-commit hooks and add github workflows check refactor(esm): move hardcoded version to variable fix(esm): add migration, update and scaling stanzas fix(esm): tune requirements for job chore: bump version back to 0.7.1 --------- Signed-off-by: Bruce Becker <[email protected]>
- Loading branch information
1 parent
4c99982
commit f747eaa
Showing
4 changed files
with
71 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "1.2.0", | ||
"version": "1.4.0", | ||
"plugins_used": [ | ||
{ | ||
"name": "ArtifactoryDetector" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
variable "consul_esm_version" { | ||
type = string | ||
default = "0.7.1" | ||
} | ||
|
||
job "consul-esm" { | ||
group "main" { | ||
|
||
count = 1 | ||
|
||
update { | ||
max_parallel = 1 | ||
health_check = "checks" | ||
min_healthy_time = "20s" | ||
healthy_deadline = "5m" | ||
auto_revert = true | ||
auto_promote = true | ||
canary = 1 | ||
} | ||
|
||
migrate { | ||
max_parallel = 1 | ||
health_check = "checks" | ||
min_healthy_time = "10s" | ||
healthy_deadline = "5m" | ||
} | ||
|
||
task "monitor" { | ||
|
||
// scaling { | ||
// enabled = true | ||
// min = 0 | ||
// max = 3 | ||
// policy { | ||
|
||
// } | ||
// } | ||
|
||
driver = "exec" | ||
config { | ||
command = "local/consul-esm" | ||
} | ||
artifact { | ||
source = "https://releases.hashicorp.com/consul-esm/${var.consul_esm_version}/consul-esm_${var.consul_esm_version}_linux_arm64.zip" | ||
destination = "local/consul-esm" | ||
mode = "file" | ||
} | ||
identity { | ||
env = true | ||
file = true | ||
} | ||
|
||
resources { | ||
cpu = 50 | ||
memory = 25 | ||
} | ||
} | ||
} | ||
} |