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
5ef02f74
Commit
5ef02f74
authored
May 21, 2019
by
xuezj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加rabbitmq pvc 测试用例
parent
9df92e48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
11 deletions
+34
-11
rabbitmq.pvc.yaml
yamls/rabbitmq.pvc.yaml
+34
-11
No files found.
yamls/rabbitmq.yaml
→
yamls/rabbitmq.
pvc.
yaml
View file @
5ef02f74
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
pvc-rabbitmq-db
namespace
:
test1
spec
:
storageClassName
:
cbs
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
10Gi
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
...
...
@@ -18,9 +33,10 @@ spec:
labels
:
qcloud-app
:
rabbitmq
spec
:
hostname
:
rabbitmq-test1
containers
:
-
image
:
ccr.ccs.tencentyun.com/qa-base/rabbitmq:3.6
imagePullPolicy
:
Always
imagePullPolicy
:
IfNotPresent
name
:
rabbitmq
resources
:
requests
:
...
...
@@ -29,15 +45,19 @@ spec:
limits
:
memory
:
500Mi
cpu
:
500m
securityContext
:
privileged
:
false
terminationMessagePath
:
/dev/termination-log
env
:
-
name
:
RABBITMQ_DEFAULT_USER
value
:
qa
-
name
:
RABBITMQ_DEFAULT_PASS
value
:
qatest
dnsPolicy
:
ClusterFirst
# 数据持久化
volumeMounts
:
-
name
:
db
mountPath
:
"
/var/lib/rabbitmq"
volumes
:
-
name
:
db
persistentVolumeClaim
:
claimName
:
pvc-rabbitmq-db
imagePullSecrets
:
-
name
:
qcloudregistrykey
-
name
:
tencenthubkey
...
...
@@ -56,6 +76,10 @@ metadata:
namespace
:
test1
spec
:
type
:
NodePort
# 保留客户端源 IP 地址, 方便调试连接
externalTrafficPolicy
:
Local
selector
:
qcloud-app
:
rabbitmq
ports
:
-
name
:
tcp-5672-5672
nodePort
:
0
...
...
@@ -67,6 +91,5 @@ spec:
port
:
15672
protocol
:
TCP
targetPort
:
15672
selector
:
qcloud-app
:
rabbitmq
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