Update api.tpl.nomad to allow configuring TLS to Nomad through gitlab
This commit is contained in:

committed by
Jan-Eric Hellenberg

parent
01d16600b0
commit
210a048b5e
@ -61,10 +61,18 @@ job "${NOMAD_SLUG}" {
|
||||
image = "${IMAGE_NAME_ENV}"
|
||||
}
|
||||
|
||||
template {
|
||||
source = "${NOMAD_CACERT}"
|
||||
destination = "/home/api/nomad-ca.crt"
|
||||
change_mode = "noop"
|
||||
}
|
||||
|
||||
env {
|
||||
POSEIDON_SERVER_ADDRESS = "${POSEIDON_LISTEN_ADDRESS}"
|
||||
POSEIDON_NOMAD_ADDRESS = "${NOMAD_SERVER_HOST}"
|
||||
POSEIDON_NOMAD_NAMESPACE = "${NOMAD_NAMESPACE}"
|
||||
POSEIDON_NOMAD_TLS_ACTIVE = "${NOMAD_TLS_ACTIVE}"
|
||||
POSEIDON_NOMAD_TLS_CAFILE = "nomad-ca.crt"
|
||||
}
|
||||
|
||||
resources {
|
||||
|
Reference in New Issue
Block a user