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
73a8feb3
Commit
73a8feb3
authored
Jun 21, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉健康检查
parent
ad3939e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
17 deletions
+10
-17
service.js
kubeService/service.js
+1
-1
resourceLimit.js
serviceTemplate/resourceLimit.js
+0
-7
ui.node.yaml
yamls/ui.node.yaml
+9
-9
No files found.
kubeService/service.js
View file @
73a8feb3
...
...
@@ -76,7 +76,7 @@ const imageUpdate = async (data) => {
const
image
=
`ccr.ccs.tencentyun.com/
${
data
.
image
}
`
const
updateObj
=
{
spec
:
{
template
:
{
spec
:
{
containers
:
[{
name
:
serviceName
,
image
}]
}
}
}
}
logger
.
info
(
'
更新
服务
'
,
namespace
,
JSON
.
stringify
(
updateObj
))
logger
.
info
(
'
更新
镜像
'
,
namespace
,
JSON
.
stringify
(
updateObj
))
await
client
.
apis
.
apps
.
v1beta1
.
namespaces
(
namespace
).
deployments
(
serviceName
).
patch
({
body
:
updateObj
})
}
...
...
serviceTemplate/resourceLimit.js
View file @
73a8feb3
...
...
@@ -123,13 +123,6 @@ projectConfig['xyqb-user2'] = projectConfig.xyqb = {
},
}
projectConfig
[
'
traffic-webapp
'
]
=
_
.
assign
({},
defaultJava
,
{
memory
:
{
request
:
100
,
limit
:
200
,
},
})
exports
.
projectConfig
=
projectConfig
exports
.
defaultConfig
=
{
java
:
defaultJava
,
...
...
yamls/ui.node.yaml
View file @
73a8feb3
...
...
@@ -59,15 +59,15 @@ spec:
limits
:
cpu
:
{{
resources.cpu.limit
}}
m
memory
:
{{
resources.memory.limit
}}
Mi
readinessProbe
:
exec
:
command
:
-
/home/quant_group/readyCheck.sh
initialDelaySeconds
:
60
timeoutSeconds
:
2
periodSeconds
:
5
successThreshold
:
1
failureThreshold
:
20
#
readinessProbe:
#
exec:
#
command:
#
- /home/quant_group/readyCheck.sh
#
initialDelaySeconds: 60
#
timeoutSeconds: 2
#
periodSeconds: 5
#
successThreshold: 1
#
failureThreshold: 20
restartPolicy
:
Always
dnsPolicy
:
ClusterFirst
imagePullSecrets
:
...
...
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