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
33804872
Commit
33804872
authored
May 21, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rabbitmq固定hostname
parent
dd10908d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
mysql.pvc.yaml
yamls/mysql.pvc.yaml
+1
-1
rabbitmq.pvc.yaml
yamls/rabbitmq.pvc.yaml
+10
-4
No files found.
yamls/mysql.pvc.yaml
View file @
33804872
...
@@ -80,7 +80,7 @@ metadata:
...
@@ -80,7 +80,7 @@ metadata:
spec
:
spec
:
type
:
NodePort
type
:
NodePort
ports
:
ports
:
-
name
:
'
3306'
-
name
:
tcp-3306-3306
port
:
3306
port
:
3306
targetPort
:
3306
targetPort
:
3306
selector
:
selector
:
...
...
yamls/rabbitmq.pvc.yaml
View file @
33804872
...
@@ -34,9 +34,11 @@ spec:
...
@@ -34,9 +34,11 @@ spec:
labels
:
labels
:
qcloud-app
:
{{
app
}}
qcloud-app
:
{{
app
}}
spec
:
spec
:
# hostname固定,容器重置后数据持久化才能正常
hostname
:
{{
app
}}
-{{namespace}}
containers
:
containers
:
-
image
:
ccr.ccs.tencentyun.com/{{image}}
-
image
:
ccr.ccs.tencentyun.com/{{image}}
imagePullPolicy
:
Always
imagePullPolicy
:
IfNotPresent
name
:
{{
app
}}
name
:
{{
app
}}
resources
:
resources
:
requests
:
requests
:
...
@@ -45,14 +47,16 @@ spec:
...
@@ -45,14 +47,16 @@ spec:
limits
:
limits
:
memory
:
500Mi
memory
:
500Mi
cpu
:
500m
cpu
:
500m
volumeMounts
:
-
mountPath
:
"
/var/lib/rabbitmq"
name
:
{{
app
}}
env
:
env
:
-
name
:
RABBITMQ_DEFAULT_USER
-
name
:
RABBITMQ_DEFAULT_USER
value
:
qa
value
:
qa
-
name
:
RABBITMQ_DEFAULT_PASS
-
name
:
RABBITMQ_DEFAULT_PASS
value
:
qatest
value
:
qatest
# 数据持久化
volumeMounts
:
-
name
:
{{
app
}}
mountPath
:
"
/var/lib/rabbitmq"
volumes
:
volumes
:
-
name
:
{{
app
}}
-
name
:
{{
app
}}
persistentVolumeClaim
:
persistentVolumeClaim
:
...
@@ -76,6 +80,8 @@ metadata:
...
@@ -76,6 +80,8 @@ metadata:
namespace
:
{{
namespace
}}
namespace
:
{{
namespace
}}
spec
:
spec
:
type
:
NodePort
type
:
NodePort
# 保留客户端源 IP 地址, 方便调试连接
externalTrafficPolicy
:
Local
ports
:
ports
:
-
name
:
tcp-5672-5672
-
name
:
tcp-5672-5672
port
:
5672
port
:
5672
...
...
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