39 lines
950 B
Smarty
39 lines
950 B
Smarty
{{- $hostname := env "HOSTNAME" }}
|
|
{{- $service := env "VALKEY_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 ""
|
|
|