From c31ca20fb0f4f151c2007cf0dbc408b3ebbd466f Mon Sep 17 00:00:00 2001 From: Ultradesu Date: Tue, 30 Jun 2026 14:00:07 +0300 Subject: [PATCH] Fix amnezia exporter's config --- k8s/apps/amnezia/daemonset.yaml | 14 ++++++++++++-- k8s/apps/amnezia/exporter-redis-configmap.yaml | 10 +++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/k8s/apps/amnezia/daemonset.yaml b/k8s/apps/amnezia/daemonset.yaml index f528fc5..a536658 100644 --- a/k8s/apps/amnezia/daemonset.yaml +++ b/k8s/apps/amnezia/daemonset.yaml @@ -8,7 +8,7 @@ metadata: annotations: reloader.stakater.com/auto: "false" secret.reloader.stakater.com/reload: "amneziawg-server" - configmap.reloader.stakater.com/reload: "amneziawg-scripts" + configmap.reloader.stakater.com/reload: "amneziawg-scripts,amneziawg-exporter-redis" spec: selector: matchLabels: @@ -37,7 +37,9 @@ spec: - | set -euo pipefail cp /usr/bin/awg /shared-bin/awg - chmod 0755 /shared-bin/awg + cp /lib/ld-musl-x86_64.so.1 /shared-bin/ld-musl-x86_64.so.1 + cp /lib/ld-musl-x86_64.so.1 /shared-bin/libc.musl-x86_64.so.1 + chmod 0755 /shared-bin/awg /shared-bin/ld-musl-x86_64.so.1 /shared-bin/libc.musl-x86_64.so.1 volumeMounts: - name: awg-bin mountPath: /shared-bin @@ -248,6 +250,14 @@ spec: mountPath: /usr/bin/awg subPath: awg readOnly: true + - name: awg-bin + mountPath: /lib/ld-musl-x86_64.so.1 + subPath: ld-musl-x86_64.so.1 + readOnly: true + - name: awg-bin + mountPath: /lib/libc.musl-x86_64.so.1 + subPath: libc.musl-x86_64.so.1 + readOnly: true volumes: - name: server-config secret: diff --git a/k8s/apps/amnezia/exporter-redis-configmap.yaml b/k8s/apps/amnezia/exporter-redis-configmap.yaml index 5c025bd..740139e 100644 --- a/k8s/apps/amnezia/exporter-redis-configmap.yaml +++ b/k8s/apps/amnezia/exporter-redis-configmap.yaml @@ -8,8 +8,8 @@ metadata: component: exporter data: redis.conf: | - bind 0.0.0.0 - protected-mode no + bind 127.0.0.1 + protected-mode yes port 6379 tcp-backlog 511 timeout 0 @@ -21,8 +21,12 @@ data: databases 16 always-show-logo no set-proc-title no - save 3600 1 + save "" + appendonly no stop-writes-on-bgsave-error no rdbcompression yes rdbchecksum yes dir /data + rename-command CONFIG "" + rename-command SAVE "" + rename-command BGSAVE ""