Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
europdx
k8s
cbio-on-demand
API
Commits
2d364910
Commit
2d364910
authored
Oct 07, 2019
by
Ľuboslav Pivarč
Browse files
Merge branch '11-resource-limits-request' into 'dev'
Resolve "Resource limits/request" See merge request
!9
parents
8497ad6d
35bdf6ce
Pipeline
#26130
passed with stages
in 16 minutes and 7 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
2d364910
...
@@ -33,6 +33,23 @@ stages:
...
@@ -33,6 +33,23 @@ stages:
-
docker build --pull -t "${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}" ./cbioondemandK8S
-
docker build --pull -t "${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}" ./cbioondemandK8S
-
docker push "$CI_REGISTRY_IMAGE:${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}"
-
docker push "$CI_REGISTRY_IMAGE:${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}"
.docker-build-dry
:
script
:
&docker-build-dry
-
docker build --pull ./cbioondemandK8S
#ALL
API Pipeline for MR
:
stage
:
build
<<
:
*docker-login
image
:
docker:latest
script
:
*docker-build-dry
except
:
-
master
-
dev
-
beta
#PRODUCTION
#PRODUCTION
API docker image build
:
API docker image build
:
<<
:
*docker-build
<<
:
*docker-build
...
...
cbioondemandK8S/src/main/resources/cbio-replicaset.yml
View file @
2d364910
...
@@ -80,3 +80,11 @@ spec:
...
@@ -80,3 +80,11 @@ spec:
postStart
:
postStart
:
exec
:
exec
:
command
:
[
"
python3"
,
"
/etc/data-loading/cbio_client.py"
]
command
:
[
"
python3"
,
"
/etc/data-loading/cbio_client.py"
]
resources
:
limits
:
memory
:
"
1000Mi"
cpu
:
"
1000m"
requests
:
memory
:
"
500Mi"
cpu
:
"
5m"
cbioondemandK8S/src/main/resources/cbiodb-replicaset.yml
View file @
2d364910
...
@@ -78,6 +78,13 @@ spec:
...
@@ -78,6 +78,13 @@ spec:
envFrom
:
envFrom
:
-
secretRef
:
-
secretRef
:
name
:
mysql-env
name
:
mysql-env
resources
:
limits
:
memory
:
"
600Mi"
cpu
:
"
50m"
requests
:
memory
:
"
300Mi"
cpu
:
"
5m"
# we use 1 config for all on-demand databeses
# we use 1 config for all on-demand databeses
volumes
:
volumes
:
-
name
:
config
-
name
:
config
...
...
Write
Preview
Supports
Markdown
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