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

!

parent c5cf58ed
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ spec:
- "-c"
- "NODEID=$(echo -n $HOSTNAME | sed 's/.*\\-\\([0-9]\\+\\)$/\\1/g');
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;
cat /templates/sentinel.template.conf | sed \"s/\\[\\[NODEID\\]\\]/${NODEID}/g\" >/data/sentinel.conf;
echo '' >>/data/redis.conf;
if [ \"$NODEID\" != '0' ]; then
echo 'slaveof osuredis-{{.Values.appName}}-0.{{.Release.Namespace}}.svc.cluster.local 6379' >>/data/redis.conf;
......
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