chore: backup infrastructure configurations [skip ci]

This commit is contained in:
github-actions[bot]
2026-02-08 02:08:34 +00:00
parent 8814f0bdc9
commit 828fa9d62d
36 changed files with 356 additions and 96 deletions

View File

@@ -3,25 +3,24 @@ job "jfs-node" {
type = "system"
group "nodes" {
network {
network {
port "metrics" {
static = 9567
to = 8080
}
}
# Add this inside your "juicefs-plugin" task in jfs-node.nomad
service {
name = "juicefs-metrics"
port = "metrics" # References the static port 9567 defined in your network block
tags = ["prometheus"]
check {
type = "http"
path = "/metrics"
interval = "10s"
timeout = "2s"
}
}
service {
name = "juicefs-metrics"
port = "metrics"
tags = ["prometheus"]
check {
type = "http"
path = "/metrics"
interval = "10s"
timeout = "2s"
}
}
task "juicefs-plugin" {
driver = "docker"
@@ -29,12 +28,12 @@ service {
config {
image = "juicedata/juicefs-csi-driver:v0.31.1"
memory_hard_limit = 2048
ports = ["metrics"]
ports = ["metrics"]
args = [
"--endpoint=unix://csi/csi.sock",
"--logtostderr",
"--v=5",
"--nodeid=${node.unique.name}", # Better than hardcoded "test"
"--nodeid=${node.unique.name}",
"--by-process=true",
]
@@ -53,7 +52,7 @@ ports = ["metrics"]
}
env {
POD_NAME = "csi-node"
AWS_REGION = "garage"
POD_NAMESPACE = "default"
# Aggregates metrics from children onto the 8080 port
JFS_METRICS = "0.0.0.0:8080"
# Ensures mounts run as background processes managed by the driver
@@ -61,4 +60,4 @@ ports = ["metrics"]
}
}
}
}
}