Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osuredis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSU OTDI-managed Helm charts
osuredis
Commits
1ed373a0
Commit
1ed373a0
authored
6 years ago
by
Edward Hicks
Browse files
Options
Downloads
Patches
Plain Diff
convert everything to use the service ip instead of the local one since
it'll probably be more reliable than the pod's direct ip
parent
1cd57481
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
redis.template.conf
+3
-0
3 additions, 0 deletions
redis.template.conf
sentinel.template.conf
+1
-0
1 addition, 0 deletions
sentinel.template.conf
templates/redis-ss.yaml
+3
-3
3 additions, 3 deletions
templates/redis-ss.yaml
with
7 additions
and
3 deletions
redis.template.conf
+
3
−
0
View file @
1ed373a0
...
...
@@ -3,5 +3,8 @@ protected-mode no
dir
/
data
maxclients
2048
timeout
86400
requirepass
"[[PASSWORD]]"
masterauth
"[[PASSWORD]]"
slave
-
announce
-
ip
osuredis
-[[
APPNAME
]]-[[
NODEID
]].[[
NAMESPACE
]].
svc
.
cluster
.
local
This diff is collapsed.
Click to expand it.
sentinel.template.conf
+
1
−
0
View file @
1ed373a0
port
26379
protected
-
mode
no
dir
/
data
slave
-
announce
-
ip
osuredis
-[[
APPNAME
]]-[[
NODEID
]].[[
NAMESPACE
]].
svc
.
cluster
.
local
sentinel
monitor
[[
APPNAME
]]
osuredis
-[[
APPNAME
]]-
0
.[[
NAMESPACE
]].
svc
.
cluster
.
local
6379
2
sentinel
down
-
after
-
milliseconds
[[
APPNAME
]]
5000
...
...
This diff is collapsed.
Click to expand it.
templates/redis-ss.yaml
+
3
−
3
View file @
1ed373a0
...
...
@@ -45,10 +45,10 @@ spec:
command
:
-
"
sh"
-
"
-c"
-
"
cp
/templates/redis.template.conf
/data/redis.conf;
cp
/templates/sentinel.template.conf
/data/sentinel.conf;
-
"
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;
echo
''
>>/data/redis.conf;
NODEID=$(echo
-n
$HOSTNAME
|
sed
's/.*
\\
-
\\
([0-9]
\\
+
\\
)$/
\\
1/g');
if
[
\"
$NODEID
\"
!=
'0'
];
then
echo
'slaveof
osuredis-{{.Values.appName}}-0.{{.Release.Namespace}}.svc.cluster.local
6379'
>>/data/redis.conf;
fi"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment