Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tke-eos
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
tke-eos
Commits
cece0fd6
Commit
cece0fd6
authored
Aug 26, 2019
by
kewei.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 redis和mysql的健康检查
parent
54c1803f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
2 deletions
+65
-2
mongo.op.yaml
yamls/mongo.op.yaml
+8
-1
mongo.pvc.yaml
yamls/mongo.pvc.yaml
+7
-0
mongo.sts.yaml
yamls/mongo.sts.yaml
+8
-1
mysql.pvc.yaml
yamls/mysql.pvc.yaml
+7
-0
redis.yaml
yamls/redis.yaml
+35
-0
No files found.
yamls/mongo.op.yaml
View file @
cece0fd6
...
...
@@ -51,6 +51,13 @@ spec:
value
:
qa
-
name
:
MONGO_INITDB_ROOT_PASSWORD
value
:
qatest
readinessProbe
:
exec
:
command
:
[
"
mongo"
,
"
-uqa"
,
"
-pqatest"
,
"
admin"
]
initialDelaySeconds
:
5
periodSeconds
:
2
timeoutSeconds
:
1
failureThreshold
:
40
volumeMounts
:
-
mountPath
:
"
/data/db"
name
:
db
...
...
@@ -84,4 +91,4 @@ spec:
targetPort
:
27017
selector
:
qcloud-app
:
mongodb
yamls/mongo.pvc.yaml
View file @
cece0fd6
...
...
@@ -53,6 +53,13 @@ spec:
value
:
qa
-
name
:
MONGO_INITDB_ROOT_PASSWORD
value
:
qatest
readinessProbe
:
exec
:
command
:
[
"
mongo"
,
"
-uqa"
,
"
-pqatest"
,
"
admin"
]
initialDelaySeconds
:
5
periodSeconds
:
2
timeoutSeconds
:
1
failureThreshold
:
40
volumeMounts
:
-
mountPath
:
"
/var/lib/mongo"
name
:
{{
serviceName
}}
...
...
yamls/mongo.sts.yaml
View file @
cece0fd6
...
...
@@ -10,7 +10,7 @@ spec:
type
:
NodePort
ports
:
-
port
:
27017
targetPort
:
27017
targetPort
:
27017
selector
:
qcloud-app
:
mongodb
...
...
@@ -45,6 +45,13 @@ spec:
value
:
qa
-
name
:
MONGO_INITDB_ROOT_PASSWORD
value
:
qatest
readinessProbe
:
exec
:
command
:
[
"
mongo"
,
"
-uqa"
,
"
-pqatest"
,
"
admin"
]
initialDelaySeconds
:
5
periodSeconds
:
2
timeoutSeconds
:
1
failureThreshold
:
40
volumeMounts
:
-
name
:
mongodb-ps
mountPath
:
/data/db
...
...
yamls/mysql.pvc.yaml
View file @
cece0fd6
...
...
@@ -72,6 +72,13 @@ spec:
value
:
Quantgroup2017
-
name
:
MYSQL_USER
value
:
qa
readinessProbe
:
exec
:
command
:
[
"
mysql"
,
"
-uqa"
,
"
-pqatest"
,
"
-e"
,
"
SELECT
1"
]
initialDelaySeconds
:
5
periodSeconds
:
2
timeoutSeconds
:
1
failureThreshold
:
40
volumeMounts
:
-
mountPath
:
"
/var/lib/mysql"
name
:
{{
serviceName
}}
...
...
yamls/redis.yaml
View file @
cece0fd6
...
...
@@ -34,6 +34,13 @@ spec:
limits
:
cpu
:
{{
resources.cpu.limit
}}
m
memory
:
{{
resources.memory.limit
}}
Mi
readinessProbe
:
exec
:
command
:
[
"
redis-cli"
,
"
--port"
,
"
6379"
]
initialDelaySeconds
:
5
periodSeconds
:
2
timeoutSeconds
:
1
failureThreshold
:
40
-
image
:
ccr.ccs.tencentyun.com/{{image}}
imagePullPolicy
:
Always
name
:
{{
serviceName
}}
-6380
...
...
@@ -45,6 +52,13 @@ spec:
limits
:
cpu
:
{{
resources.cpu.limit
}}
m
memory
:
200Mi
readinessProbe
:
exec
:
command
:
[
"
redis-cli"
,
"
--port"
,
"
6380"
]
initialDelaySeconds
:
5
periodSeconds
:
2
timeoutSeconds
:
1
failureThreshold
:
40
-
image
:
ccr.ccs.tencentyun.com/{{image}}
imagePullPolicy
:
Always
name
:
{{
serviceName
}}
-6381
...
...
@@ -56,6 +70,13 @@ spec:
limits
:
cpu
:
{{
resources.cpu.limit
}}
m
memory
:
{{
resources.memory.limit
}}
Mi
readinessProbe
:
exec
:
command
:
[
"
redis-cli"
,
"
--port"
,
"
6381"
]
initialDelaySeconds
:
5
periodSeconds
:
2
timeoutSeconds
:
1
failureThreshold
:
40
-
image
:
ccr.ccs.tencentyun.com/{{image}}
imagePullPolicy
:
Always
name
:
{{
serviceName
}}
-6382
...
...
@@ -67,6 +88,13 @@ spec:
limits
:
cpu
:
{{
resources.cpu.limit
}}
m
memory
:
{{
resources.memory.limit
}}
Mi
readinessProbe
:
exec
:
command
:
[
"
redis-cli"
,
"
--port"
,
"
6382"
]
initialDelaySeconds
:
5
periodSeconds
:
2
timeoutSeconds
:
1
failureThreshold
:
40
-
image
:
ccr.ccs.tencentyun.com/{{image}}
imagePullPolicy
:
Always
name
:
{{
serviceName
}}
-6383
...
...
@@ -78,6 +106,13 @@ spec:
limits
:
cpu
:
{{
resources.cpu.limit
}}
m
memory
:
{{
resources.memory.limit
}}
Mi
readinessProbe
:
exec
:
command
:
[
"
redis-cli"
,
"
--port"
,
"
6383"
]
initialDelaySeconds
:
5
periodSeconds
:
2
timeoutSeconds
:
1
failureThreshold
:
40
dnsPolicy
:
ClusterFirst
imagePullSecrets
:
-
name
:
qcloudregistrykey
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment