mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-29 03:26:14 +01:00
2e61e7ef3c
Signed-off-by: main <magic_rb@redalder.org>
55 lines
840 B
HCL
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
|
|
}
|
|
}
|
|
}
|
|
}
|