valkey-kustom/resources/node/files/conf/replication.conf.tpl
Philippe Caseiro 09c6791509
Some checks failed
Build and Push Image / Build and push image (push) Failing after 13s
fix(node): use headless service in all the scripts
2025-05-28 11:11:12 +02:00

38 lines
958 B
Smarty

{{- $hostname := env "HOSTNAME" }}
{{- $service := env "VALKEY_HEADLESS_SERVICE" }}
{{- $namespace := env "NAMESPACE" }}
{{- $port := env "VALKEY_PORT" }}
{{- $sentinel_port := env "VALKEY_SENTINEL_PORT" }}
{{- $replicas := env "VALKEY_REPLICAS" }}
{{- $domain := printf "%s.%s.svc.cluster.local" $service $namespace }}
{{- $fqdn := printf "%s.%s" $hostname $domain }}
{{- $hostid := sha1sum $hostname }}
{{- $datadir := env "VALKEY_DATA_DIR" }}
dir {{ $datadir }}
protected-mode no
loglevel {{ env "VALKEY_LOG_LEVEL" }}
appendonly yes
appendfilename "appendonly.aof"
appenddirname "appendonlydir"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
aof-use-rdb-preamble yes
aof-timestamp-enabled no
save ""
replica-announce-port {{ $port }}
replica-announce-ip {{ $fqdn }}
# User-supplied replica configuration:
rename-command FLUSHDB ""
rename-command FLUSHALL ""