v0.0.5
Changelog
version 0.0.5
Container
HTTP health checks can now be defined for containers. At present HTTP health checks are executed on the client and
require forwarded ports or an ingress to be configured. Future updates will move this functionality to the network
removing the requirement for external access.
container "vault" {
image {
name = "hashicorp/vault-enterprise:1.4.0-rc1_ent"
}
command = [
"vault",
"server",
"-dev",
"-dev-root-token-id=root",
"-dev-listen-address=0.0.0.0:8200",
]
port {
local = 8200
remote = 8200
host = 8200
}
health_check {
timeout = "30s"
http = "http://localhost:8200/v1/sys/health"
}
}Nomad Job
Nomad job is a new resource type which allows the running of Nomad Jobs on a cluster. Health checks can be applied to jobs
a health check will only be marked as passed when all the tasks in side the job are reported as "Running".
Nomad job is a dependent resource and will not apply until the cluster is up and healthy.
nomad_cluster "dev" {
version = "v0.10.2"
nodes = 1 // default
network {
name = "network.cloud"
}
image {
name = "consul:1.7.1"
}
}
nomad_job "redis" {
cluster = "nomad_cluster.dev"
paths = ["./app_config/example2.nomad"]
health_check {
timeout = "60s"
nomad_jobs = ["example_2"]
}
}8bde927 Add capability to query Nomad job status to client
0e7e24b Add stop job capability to Nomad job
3924c83 Add tests and implementation for Nomad client apply
dfcd3b1 Complete Nomad job implementation
a1f7662 Finish implementing Nomad client
f98b4ff Fix tests running on PRs
481c754 Maybe put the go version pin in the correct repository just for giggles
f20fbad Maybe these updates will make tests less flakey, thinking maybe a 30% chance
9d648cc Merge pull request #59 from shipyard-run/nomad_job
807e871 Ping Go version to 1.13, test failures were due to building on 1.14 by default
4ef223e Start implementing Nomad Client and Job provider
4ddf3be Update .goreleaser.yml
e7414e3 Updated functional tests, in the faint hope they will be less flakey on CI
f84a0c9 When creating a nomad cluster generate a config file
5fc9411 refactored nomad provider to use new client