Skip to content
Snippets Groups Projects
Commit 5ea1678d authored by Edward Hicks's avatar Edward Hicks :8ball:
Browse files

went through the redis default config file and added a bunch more

settings
parent 67ced199
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,13 @@ loglevel notice
logfile /data/redis.log
protected-mode no
dir /data
port 6379
maxclients 2048
timeout 86400
save 60 1
slave-serve-stale-data no
repl-diskless-sync yes
requirepass "[[PASSWORD]]"
masterauth "[[PASSWORD]]"
......
......@@ -51,8 +51,11 @@ spec:
cat /templates/redis.template.conf | sed \"s/\\[\\[NODEID\\]\\]/${NODEID}/g\" >/data/redis.conf;
cat /templates/sentinel.template.conf | sed \"s/\\[\\[NODEID\\]\\]/${NODEID}/g\" >/data/sentinel.conf;
echo '' >>/data/redis.conf;
if [ \"$NODEID\" != '0' ]; then
if [ \"$NODEID\" = '0' ]; then
echo 'slave-priority 10' >>/data/redis.conf;
else
rm -f dump.rdb;
echo 'slave-priority 100' >>/data/redis.conf;
echo 'slaveof osuredis-{{.Values.appName}}-0.{{.Release.Namespace}}.svc.cluster.local 6379' >>/data/redis.conf;
fi"
volumeMounts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment