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
cf6608b1
Commit
cf6608b1
authored
Jun 14, 2019
by
智勇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jiakewei' into 'master'
增加python 模块 See merge request !23
parents
d73d5abd
b53edd3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
0 deletions
+75
-0
resourceLimit.js
serviceTemplate/resourceLimit.js
+12
-0
python.yaml
yamls/python.yaml
+63
-0
No files found.
serviceTemplate/resourceLimit.js
View file @
cf6608b1
...
...
@@ -34,6 +34,17 @@ const defaultNodejs = {
},
}
const
defaultPython
=
{
memory
:
{
request
:
10
,
limit
:
300
,
},
cpu
:
{
request
:
1
,
limit
:
200
,
},
}
const
defaultRedis
=
{
memory
:
{
request
:
40
,
...
...
@@ -128,4 +139,5 @@ exports.defaultConfig = {
zookeeper
:
defaultZookeeper
,
mysql
:
defaultMysql
,
rabbitmq
:
defaultRabbitmq
,
python
:
defaultPython
,
}
yamls/python.yaml
0 → 100644
View file @
cf6608b1
apiVersion
:
apps/v1beta1
kind
:
Deployment
metadata
:
name
:
{{
serviceName
}}
namespace
:
{{
namespace
}}
labels
:
type
:
{{
label
}}
qcloud-app
:
{{
serviceName
}}
spec
:
replicas
:
1
selector
:
matchLabels
:
qcloud-app
:
{{
serviceName
}}
strategy
:
type
:
Recreate
template
:
metadata
:
labels
:
qcloud-app
:
{{
serviceName
}}
type
:
{{
label
}}
spec
:
terminationGracePeriodSeconds
:
0
revisionHistoryLimit
:
1
containers
:
-
name
:
{{
serviceName
}}
image
:
ccr.ccs.tencentyun.com/{{image}}
imagePullPolicy
:
Always
volumeMounts
:
env
:
-
name
:
NAMESPACE
value
:
{{
namespace
}}
-
name
:
DEBUG
value
:
{{
debug
}}
resources
:
requests
:
cpu
:
{{
resources.cpu.request
}}
m
memory
:
{{
resources.memory.request
}}
Mi
limits
:
cpu
:
{{
resources.cpu.limit
}}
m
memory
:
{{
resources.memory.limit
}}
Mi
restartPolicy
:
Always
dnsPolicy
:
ClusterFirst
imagePullSecrets
:
-
name
:
qcloudregistrykey
-
name
:
tencenthubkey
---
apiVersion
:
v1
kind
:
Service
metadata
:
labels
:
type
:
{{
label
}}
qcloud-app
:
{{
serviceName
}}
name
:
{{
serviceName
}}
namespace
:
{{
namespace
}}
spec
:
type
:
ClusterIP
ports
:
-
name
:
'
80'
port
:
80
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