fix: Alloy block syntax, dpkg lock wait, hitl local bind, ai-reader nodes RBAC, harness image f30af2a
- Alloy 설정 3종: rule 블록을 한 줄 쉼표 나열에서 줄바꿈 속성으로 수정(실측: k8s DaemonSet
CrashLoopBackOff, db-replica alloy.service "expected TERMINATOR, got ,"). alloy fmt로 3종 파싱 확인.
- vm/postgres-common/alloy.sh: apt에 DPkg::Lock::Timeout=600(db-primary에서 unattended-upgrades 잠금으로 100 종료).
- vm/ai-env/compose.yaml: hitl 8081을 127.0.0.1에만 바인딩(agent는 compose 네트워크로 접근).
- workloads/rbac/ai-reader.yaml: nodes get/list/watch ClusterRole 추가(agent get_k8s(nodes) selfcheck 거부 해소).
- vm/harness/image.tag: f30af2a(POST /proposals/{token}/approve·reject 포함 러너).
This commit is contained in:
1 parent
7ce2dc68fe
commit
a500c3d40c
7 files changed
+142
-29
No files matched your search
@@ -11,8 +11,9 @@ if ! command -v alloy >/dev/null; then
|
||||
wget -qO /etc/apt/keyrings/grafana.asc https://apt.grafana.com/gpg-full.key
|
||||
chmod 644 /etc/apt/keyrings/grafana.asc
|
||||
echo "deb [signed-by=/etc/apt/keyrings/grafana.asc] https://apt.grafana.com stable main" > /etc/apt/sources.list.d/grafana.list
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq alloy >/dev/null
|
||||
# wait for unattended-upgrades instead of failing on the dpkg lock (db-primary 2026-10-08: "Could not get lock /var/lib/dpkg/lock-frontend")
|
||||
apt-get -o DPkg::Lock::Timeout=600 update -qq
|
||||
apt-get -o DPkg::Lock::Timeout=600 install -y -qq alloy >/dev/null
|
||||
fi
|
||||
usermod -aG adm alloy # /var/log/postgresql/*.log is postgres:adm 0640
|
||||
install -d -m 755 /etc/alloy
|
||||
|
||||
@@ -15,7 +15,10 @@ prometheus.scrape "db" {
|
||||
|
||||
prometheus.relabel "instance" {
|
||||
forward_to = [prometheus.remote_write.mimir.receiver]
|
||||
rule { target_label = "instance", replacement = sys.env("INSTANCE") }
|
||||
rule {
|
||||
target_label = "instance"
|
||||
replacement = sys.env("INSTANCE")
|
||||
}
|
||||
}
|
||||
|
||||
prometheus.remote_write "mimir" {
|
||||
|
||||
Reference in new issue
Block a user