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
f6c5b4dd
Commit
f6c5b4dd
authored
Jun 19, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mongo
parent
3b30ec48
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
0 deletions
+84
-0
index.js
yamls/index.js
+2
-0
mongo.pvc.yaml
yamls/mongo.pvc.yaml
+82
-0
No files found.
yamls/index.js
View file @
f6c5b4dd
...
...
@@ -3,6 +3,7 @@ const fs = require('fs')
const
mysql
=
fs
.
readFileSync
(
'
yamls/mysql.pvc.yaml
'
,
'
utf8
'
)
const
redis
=
fs
.
readFileSync
(
'
yamls/redis.pvc.yaml
'
,
'
utf8
'
)
const
rabbitmq
=
fs
.
readFileSync
(
'
yamls/rabbitmq.pvc.yaml
'
,
'
utf8
'
)
const
mongodb
=
fs
.
readFileSync
(
'
yamls/mongo.pvc.yaml
'
,
'
utf8
'
)
const
zookeeper
=
fs
.
readFileSync
(
'
yamls/zookeeper.pvc.yaml
'
,
'
utf8
'
)
const
ui
=
fs
.
readFileSync
(
'
yamls/ui.node.yaml
'
,
'
utf8
'
)
const
node
=
fs
.
readFileSync
(
'
yamls/ui.node.yaml
'
,
'
utf8
'
)
...
...
@@ -13,6 +14,7 @@ module.exports = {
mysql
,
redis
,
rabbitmq
,
mongodb
,
zookeeper
,
ui
,
node
,
...
...
yamls/mongo.pvc.yaml
0 → 100644
View file @
f6c5b4dd
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
{{
serviceName
}}
-{{namespace}}
namespace
:
{{
namespace
}}
spec
:
storageClassName
:
cbs
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
10Gi
---
apiVersion
:
apps/v1beta1
kind
:
Deployment
metadata
:
labels
:
type
:
base
qcloud-app
:
{{
serviceName
}}
name
:
{{
serviceName
}}
namespace
:
{{
namespace
}}
spec
:
replicas
:
1
revisionHistoryLimit
:
1
selector
:
matchLabels
:
qcloud-app
:
{{
serviceName
}}
strategy
:
type
:
Recreate
template
:
metadata
:
labels
:
qcloud-app
:
{{
serviceName
}}
type
:
base
spec
:
containers
:
-
image
:
ccr.ccs.tencentyun.com/{{image}}
imagePullPolicy
:
Always
name
:
{{
serviceName
}}
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
:
"
/var/lib/mongo"
name
:
{{
serviceName
}}
volumes
:
-
name
:
{{
serviceName
}}
persistentVolumeClaim
:
claimName
:
{{
serviceName
}}
-{{namespace}}
imagePullSecrets
:
-
name
:
qcloudregistrykey
-
name
:
tencenthubkey
restartPolicy
:
Always
terminationGracePeriodSeconds
:
30
status
:
{}
---
apiVersion
:
v1
kind
:
Service
metadata
:
labels
:
type
:
base
qcloud-app
:
{{
serviceName
}}
name
:
{{
serviceName
}}
namespace
:
{{
namespace
}}
spec
:
type
:
NodePort
ports
:
-
port
:
27017
selector
:
qcloud-app
:
{{
serviceName
}}
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