cluster/nomad/regions/homelab-1/job/reicio.hcl
main 2e61e7ef3c
Reorganization and better Terraform
Signed-off-by: main <magic_rb@redalder.org>
2022-07-30 23:27:40 +02:00

55 lines
840 B
HCL

variable "flake_ref" {
type = string
}
variable "flake_sha" {
type = string
}
job "reicio" {
datacenters = [ "homelab-1" ]
type = "service"
group "reicio" {
count = 1
network {
mode = "bridge"
}
service {
name = "reicio"
port = "8000"
check {
type = "http"
address_mode = "alloc"
path = "/"
port = "8000"
interval = "2s"
timeout = "2s"
}
connect {
sidecar_service {}
}
}
task "reicio" {
driver = "containerd-driver"
config {
flake_ref = "${var.flake_ref}#nixngSystems.reicio.config.system.build.toplevel"
flake_sha = var.flake_sha
entrypoint = [ "init" ]
}
resources {
cpu = 64
memory = 16
memory_max = 32
}
}
}
}