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
2c0a7949
Commit
2c0a7949
authored
May 06, 2019
by
xuezj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增 op monogo服务
parent
7995fe80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
14 deletions
+87
-14
mongo.op.yaml
yamls/mongo.op.yaml
+87
-0
test-mongo.yaml
yamls/test-mongo.yaml
+0
-14
No files found.
yamls/mongo.op.yaml
0 → 100644
View file @
2c0a7949
# 存放运营系统需要的数据,以前是在4.50
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
pvc-mongo-default
namespace
:
default
spec
:
storageClassName
:
cbs
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
20Gi
---
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
labels
:
qcloud-app
:
mongodb
name
:
mongodb
namespace
:
default
spec
:
replicas
:
1
revisionHistoryLimit
:
1
selector
:
matchLabels
:
qcloud-app
:
mongodb
strategy
:
type
:
Recreate
template
:
metadata
:
labels
:
qcloud-app
:
mongodb
spec
:
containers
:
-
image
:
ccr.ccs.tencentyun.com/qa-base/mongodb:3.6
imagePullPolicy
:
IfNotPresent
name
:
mongodb
resources
:
requests
:
memory
:
256Mi
cpu
:
250m
limits
:
memory
:
1024Mi
cpu
:
500m
env
:
-
name
:
MONGO_INITDB_ROOT_USERNAME
value
:
qa
-
name
:
MONGO_INITDB_ROOT_PASSWORD
value
:
qatest
volumeMounts
:
-
mountPath
:
"
/data/db"
name
:
db
volumes
:
-
name
:
db
persistentVolumeClaim
:
claimName
:
pvc-mongo-default
imagePullSecrets
:
-
name
:
qcloudregistrykey
-
name
:
tencenthubkey
restartPolicy
:
Always
terminationGracePeriodSeconds
:
30
status
:
{}
---
apiVersion
:
v1
kind
:
Service
metadata
:
labels
:
type
:
base
qcloud-app
:
mongodb
name
:
mongodb
namespace
:
default
spec
:
type
:
NodePort
ports
:
-
name
:
"
27017"
nodePort
:
30017
port
:
27017
protocol
:
TCP
targetPort
:
27017
selector
:
qcloud-app
:
mongodb
yamls/test-mongo.yaml
deleted
100644 → 0
View file @
7995fe80
apiVersion
:
extensions/v1beta1
kind
:
Ingress
metadata
:
name
:
mongodb.test1
namespace
:
test1
spec
:
rules
:
-
host
:
mongodb-test1.liangkebang.net
http
:
paths
:
-
path
:
/
backend
:
serviceName
:
mongodb
servicePort
:
27017
\ No newline at end of file
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