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"
}
}
}

View File

@@ -16,7 +16,9 @@ job "navidrome" {
source = "navidrome-volume" # This must match the 'id' in your volume registration
attachment_mode = "file-system"
access_mode = "multi-node-multi-writer"
}
}
# Main Navidrome task
task "navidrome" {
@@ -24,7 +26,7 @@ job "navidrome" {
volume_mount {
volume = "navidrome-csi-vol" # Matches the name in the volume block above
destination = "/data" # Where it appears inside the container
destination = "/db" # Where it appears inside the container
read_only = false
}
@@ -37,16 +39,19 @@ job "navidrome" {
"/mnt/Public/Downloads/Clean_Music:/music/CleanMusic:ro",
"/mnt/Public/Downloads/news/slskd/downloads:/music/slskd:ro",
"/mnt/Public/Downloads/incoming_music:/music/incomingmusic:ro",
#"/mnt/configs/navidrome:/data"
"/mnt/Public/configs/navidrome/cache:/data/cache",
"/mnt/Public/configs/navidrome/backups:/data/backups"
]
}
env {
ND_DATAFOLDER = "/db"
ND_CACHEFOLDER = "/data/cache"
ND_SCANSCHEDULE = "32 8-20 * * *"
ND_LOGLEVEL = "debug"
ND_REVERSEPROXYWHITELIST = "0.0.0.0/0"
ND_REVERSEPROXYUSERHEADER = "X-Forwarded-User"
ND_SCANNER_GROUPALBUMRELEASES = "False"
ND_BACKUP_PATH = "/data"
ND_BACKUP_PATH = "/data/backups"
ND_BACKUP_SCHEDULE = "0 0 * * *"
ND_BACKUP_COUNT = "7"
}