Fix amnezia exporter's config
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 6s
Check with kubeconform / lint (push) Successful in 7s
Auto-update README / Generate README and Create MR (push) Successful in 4s

This commit is contained in:
Ultradesu
2026-06-30 14:00:07 +03:00
parent b42ba8d68f
commit c31ca20fb0
2 changed files with 19 additions and 5 deletions
+12 -2
View File
@@ -8,7 +8,7 @@ metadata:
annotations: annotations:
reloader.stakater.com/auto: "false" reloader.stakater.com/auto: "false"
secret.reloader.stakater.com/reload: "amneziawg-server" 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: spec:
selector: selector:
matchLabels: matchLabels:
@@ -37,7 +37,9 @@ spec:
- | - |
set -euo pipefail set -euo pipefail
cp /usr/bin/awg /shared-bin/awg 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: volumeMounts:
- name: awg-bin - name: awg-bin
mountPath: /shared-bin mountPath: /shared-bin
@@ -248,6 +250,14 @@ spec:
mountPath: /usr/bin/awg mountPath: /usr/bin/awg
subPath: awg subPath: awg
readOnly: true 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: volumes:
- name: server-config - name: server-config
secret: secret:
@@ -8,8 +8,8 @@ metadata:
component: exporter component: exporter
data: data:
redis.conf: | redis.conf: |
bind 0.0.0.0 bind 127.0.0.1
protected-mode no protected-mode yes
port 6379 port 6379
tcp-backlog 511 tcp-backlog 511
timeout 0 timeout 0
@@ -21,8 +21,12 @@ data:
databases 16 databases 16
always-show-logo no always-show-logo no
set-proc-title no set-proc-title no
save 3600 1 save ""
appendonly no
stop-writes-on-bgsave-error no stop-writes-on-bgsave-error no
rdbcompression yes rdbcompression yes
rdbchecksum yes rdbchecksum yes
dir /data dir /data
rename-command CONFIG ""
rename-command SAVE ""
rename-command BGSAVE ""