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

remove dump files from slaves - 0 starts as master and its dump file

should be considered the master copy
parent 4084da0c
No related branches found
No related tags found
No related merge requests found
apiVersion: v1
name: osuredis
version: 1.0.3
version: 1.0.4
description: "Helm chart for deploying one of the OCIO Middleware's standard Redis instances"
keywords:
- "redis"
......
......@@ -52,6 +52,7 @@ spec:
cat /templates/sentinel.template.conf | sed \"s/\\[\\[NODEID\\]\\]/${NODEID}/g\" >/data/sentinel.conf;
echo '' >>/data/redis.conf;
if [ \"$NODEID\" != '0' ]; then
rm -f dump.rdb;
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