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
b1e2febc
Commit
b1e2febc
authored
6 years ago
by
Edward Hicks
Browse files
Options
Downloads
Patches
Plain Diff
added readiness checks to use redis' ping/pong functionality. minor
security enhancement to the sentinels
parent
cca03744
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Chart.yaml
+1
-1
1 addition, 1 deletion
Chart.yaml
sentinel.template.conf
+4
-2
4 additions, 2 deletions
sentinel.template.conf
templates/proxy-deploy.yaml
+1
-1
1 addition, 1 deletion
templates/proxy-deploy.yaml
templates/redis-ss.yaml
+47
-5
47 additions, 5 deletions
templates/redis-ss.yaml
with
53 additions
and
9 deletions
Chart.yaml
+
1
−
1
View file @
b1e2febc
apiVersion
:
v1
name
:
osuredis
version
:
1.0.
7
version
:
1.0.
8
description
:
"
Helm
chart
for
deploying
one
of
the
OCIO
Middleware's
standard
Redis
instances"
keywords
:
-
"
redis"
...
...
This diff is collapsed.
Click to expand it.
sentinel.template.conf
+
4
−
2
View file @
b1e2febc
...
...
@@ -3,9 +3,11 @@ logfile /data/sentinel.log
protected
-
mode
no
dir
/
data
port
26379
sentinel
deny
-
scripts
-
reconfig
yes
#sentinel announce-ip osuredis-[[APPNAME]]-[[NODEID]].[[NAMESPACE]].svc.cluster.local
sentinel
monitor
[[
APPNAME
]]
osuredis
-[[
APPNAME
]]-
0
.[[
NAMESPACE
]].
svc
.
cluster
.
local
6379
2
sentinel
auth
-
pass
[[
APPNAME
]] [[
PASSWORD
]]
sentinel
down
-
after
-
milliseconds
[[
APPNAME
]]
5000
sentinel
failover
-
timeout
[[
APPNAME
]]
10000
sentinel
auth
-
pass
[[
APPNAME
]] [[
PASSWORD
]]
#sentinel announce-ip osuredis-[[APPNAME]]-[[NODEID]].[[NAMESPACE]].svc.cluster.local
This diff is collapsed.
Click to expand it.
templates/proxy-deploy.yaml
+
1
−
1
View file @
b1e2febc
...
...
@@ -57,7 +57,7 @@ spec:
port
:
6379
resources
:
{{
- toYaml .Values.proxy.resources | nindent 12
}}
{{
- with .Values.nodeSelector
}}
{{
- with .Values.nodeSelector
}}
nodeSelector
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
...
...
This diff is collapsed.
Click to expand it.
templates/redis-ss.yaml
+
47
−
5
View file @
b1e2febc
...
...
@@ -79,12 +79,33 @@ spec:
-
name
:
"
persistent-data"
mountPath
:
"
/data"
livenessProbe
:
initialDelaySeconds
:
30
0
periodSeconds
:
3
0
initialDelaySeconds
:
1
0
periodSeconds
:
6
0
timeoutSeconds
:
10
failureThreshold
:
3
tcpSocket
:
port
:
6379
readinessProbe
:
initialDelaySeconds
:
10
periodSeconds
:
60
timeoutSeconds
:
10
exec
:
command
:
-
"
redis-cli"
-
"
-a"
-
"
{{.Values.appPassword}}"
-
"
PING"
-
"
|"
-
"
tr"
-
"
-d"
-
"
[:space:]"
-
"
|"
-
"
xargs"
-
"
-n1"
-
"
-r"
-
"
test"
-
"
PONG"
-
"
="
resources
:
{{
- toYaml .Values.redis.resources | nindent 12
}}
-
name
:
"
sentinel"
...
...
@@ -101,15 +122,36 @@ spec:
-
name
:
"
persistent-data"
mountPath
:
"
/data"
livenessProbe
:
initialDelaySeconds
:
30
0
periodSeconds
:
3
0
initialDelaySeconds
:
1
0
periodSeconds
:
6
0
timeoutSeconds
:
10
failureThreshold
:
3
tcpSocket
:
port
:
26379
readinessProbe
:
initialDelaySeconds
:
10
periodSeconds
:
60
timeoutSeconds
:
10
exec
:
command
:
-
"
redis-cli"
-
"
-p"
-
"
26379"
-
"
PING"
-
"
|"
-
"
tr"
-
"
-d"
-
"
[:space:]"
-
"
|"
-
"
xargs"
-
"
-n1"
-
"
-r"
-
"
test"
-
"
PONG"
-
"
="
resources
:
{{
- toYaml .Values.sentinel.resources | nindent 12
}}
{{
- with .Values.nodeSelector
}}
{{
- with .Values.nodeSelector
}}
nodeSelector
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
...
...
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