2022-11-11 21:34:08 +00:00
|
|
|
resource "nomad_job" "service" {
|
|
|
|
jobspec = templatefile("${path.module}/service_template.nomad", {
|
2023-01-11 23:40:42 +00:00
|
|
|
name = var.name
|
|
|
|
image = var.image
|
|
|
|
args = var.args
|
|
|
|
env = var.env
|
|
|
|
meta = var.meta
|
|
|
|
group_meta = var.group_meta
|
2022-11-11 21:34:08 +00:00
|
|
|
|
|
|
|
service_port = var.service_port
|
|
|
|
sticky_disk = var.sticky_disk
|
|
|
|
resources = var.resources
|
|
|
|
|
|
|
|
ingress = var.ingress
|
|
|
|
ingress_rule = var.ingress_rule
|
|
|
|
ingress_middlewares = var.ingress_middlewares
|
|
|
|
healthcheck_path = var.healthcheck_path
|
2022-11-15 17:00:37 +00:00
|
|
|
metrics_port_name = var.metrics_port_name
|
2022-11-11 21:34:08 +00:00
|
|
|
|
|
|
|
templates = var.templates
|
|
|
|
host_volumes = var.host_volumes
|
|
|
|
|
|
|
|
upstreams = var.upstreams
|
|
|
|
use_mysql = var.use_mysql
|
|
|
|
use_redis = var.use_redis
|
|
|
|
use_ldap = var.use_ldap
|
|
|
|
use_vault = var.use_vault
|
|
|
|
|
|
|
|
mysql_bootstrap = var.mysql_bootstrap
|
|
|
|
})
|
|
|
|
}
|