chore: backup infrastructure configurations [skip ci]

This commit is contained in:
github-actions[bot]
2026-02-04 02:02:47 +00:00
parent e231f18f08
commit 7e55c8f58b
32 changed files with 132 additions and 48 deletions

View File

@@ -3,17 +3,38 @@ job "jfs-node" {
type = "system"
group "nodes" {
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"
}
}
task "juicefs-plugin" {
driver = "docker"
config {
image = "juicedata/juicefs-csi-driver:v0.31.1"
memory_hard_limit = 2048
ports = ["metrics"]
args = [
"--endpoint=unix://csi/csi.sock",
"--logtostderr",
"--v=5",
"--nodeid=test",
"--nodeid=${node.unique.name}", # Better than hardcoded "test"
"--by-process=true",
]
@@ -24,6 +45,7 @@ job "jfs-node" {
id = "juicefs0"
type = "node"
mount_dir = "/csi"
health_timeout = "3m"
}
resources {
cpu = 100
@@ -31,7 +53,11 @@ job "jfs-node" {
}
env {
POD_NAME = "csi-node"
AWS_REGION = "garage"
AWS_REGION = "garage"
# 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
JFS_MOUNT_MODE = "process"
}
}
}