Fix amnezia exporter's config
This commit is contained in:
@@ -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 ""
|
||||||
|
|||||||
Reference in New Issue
Block a user