Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
ES Subset Generator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ChEMBL
C
ChEMBL
Main Web Interface
ES Subset Generator
Commits
865f526f
Commit
865f526f
authored
Aug 19, 2020
by
David Mendez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare k8s deployment file for staging
parent
4813155f
Pipeline
#93257
passed with stages
in 5 minutes and 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
24 deletions
+51
-24
.gitlab-ci.yml
.gitlab-ci.yml
+12
-11
k8s-deployment.yaml
k8s-deployment.yaml
+39
-13
No files found.
.gitlab-ci.yml
View file @
865f526f
...
...
@@ -171,17 +171,18 @@ deploy_to_staging:
-
kubectl create secret generic ${GUNICORN_CONFIG_SECRET_NAME_STAGING} --from-file=GUNICORN_CONFIG.py=${CONFIG_GUNICORN_STAGING_FILE_PATH} -o yaml -n ${CHEMBL_NS_STAGING} --dry-run=client | kubectl replace -f -
-
cat ${CONFIG_STAGING_FILE_PATH}
-
cat ${CONFIG_GUNICORN_STAGING_FILE_PATH}
# - sed -i "s~<NAMESPACE>~${CHEMBL_NS_STAGING}~" k8s-deployment.yaml
# - sed -i "s~<NUM_REPLICAS>~${NUM_REPLICAS_STAGING}~" k8s-deployment.yaml
# - sed -i "s~<HTTP_PROXY>~${HTTP_PROXY_HX}~g" k8s-deployment.yaml
# - sed -i "s~<HTTPS_PROXY>~${HTTPS_PROXY_HX}~g" k8s-deployment.yaml
# - sed -i "s~<NO_PROXY>~${NO_PROXY_HX_DEFAULT}~g" k8s-deployment.yaml
# - sed -i "s~<CPU_LIMIT>~${CPU_LIMIT_STAGING}~" k8s-deployment.yaml
# - sed -i "s~<CPU_REQUESTED>~${CPU_REQUESTED_STAGING}~" k8s-deployment.yaml
# - sed -i "s~<SERVER_IMAGE_TAG>~${SERVER_IMAGE_TAG}~" k8s-deployment.yaml
# - sed -i "s~<RUN_CONFIG_SECRET_NAME>~${RUN_CONFIG_SECRET_NAME_STAGING}~" k8s-deployment.yaml
# - sed -i "s~<GUNICORN_CONFIG_SECRET_NAME>~${GUNICORN_CONFIG_SECRET_NAME_STAGING}~" k8s-deployment.yaml
# - cat k8s-deployment.yaml
-
sed -i "s~<NAMESPACE>~${CHEMBL_NS_STAGING}~" k8s-deployment.yaml
-
sed -i "s~<NUM_REPLICAS>~${NUM_REPLICAS_STAGING}~" k8s-deployment.yaml
-
sed -i "s~<HTTP_PROXY>~${HTTP_PROXY_HX}~g" k8s-deployment.yaml
-
sed -i "s~<HTTPS_PROXY>~${HTTPS_PROXY_HX}~g" k8s-deployment.yaml
-
sed -i "s~<NO_PROXY>~${NO_PROXY_HX_DEFAULT}~g" k8s-deployment.yaml
-
sed -i "s~<CPU_LIMIT>~${CPU_LIMIT_STAGING}~" k8s-deployment.yaml
-
sed -i "s~<CPU_REQUESTED>~${CPU_REQUESTED_STAGING}~" k8s-deployment.yaml
-
sed -i "s~<SERVER_IMAGE_TAG>~${SERVER_IMAGE_TAG}~" k8s-deployment.yaml
-
sed -i "s~<TASKS_DAEMON_IMAGE_TAG>~${TASKS_DAEMON_IMAGE_TAG}~" k8s-deployment.yaml
-
sed -i "s~<RUN_CONFIG_SECRET_NAME>~${RUN_CONFIG_SECRET_NAME_STAGING}~" k8s-deployment.yaml
-
sed -i "s~<GUNICORN_CONFIG_SECRET_NAME>~${GUNICORN_CONFIG_SECRET_NAME_STAGING}~" k8s-deployment.yaml
-
cat k8s-deployment.yaml
# - kubectl apply -n ${CHEMBL_NS_STAGING} -f k8s-deployment.yaml
# - kubectl get pods -n ${CHEMBL_NS_STAGING}
# - cat ${INGRESS_STAGING_FILE_PATH}
...
...
k8s-deployment.yaml
View file @
865f526f
...
...
@@ -23,14 +23,27 @@ spec:
requests
:
cpu
:
<CPU_REQUESTED>
volumeMounts
:
-
name
:
run-config
mountPath
:
'
/etc/run_config/'
readOnly
:
true
-
name
:
gunicorn-config
mountPath
:
'
/etc/gunicorn_config/'
readOnly
:
true
-
name
:
run-config
mountPath
:
'
/etc/run_config/'
readOnly
:
true
-
name
:
gunicorn-config
mountPath
:
'
/etc/gunicorn_config/'
readOnly
:
true
env
:
-
name
:
HTTP_PROXY
value
:
"
<HTTP_PROXY>"
-
name
:
http_proxy
value
:
"
<HTTP_PROXY>"
-
name
:
HTTPS_PROXY
value
:
"
<HTTPS_PROXY>"
-
name
:
https_proxy
value
:
"
<HTTPS_PROXY>"
-
name
:
NO_PROXY
value
:
"
<NO_PROXY>"
-
name
:
no_proxy
value
:
"
<NO_PROXY>"
-
name
:
es-subset-generator-tasks-daemon
image
:
<
STATU
S_DAEMON_IMAGE_TAG>
image
:
<
TASK
S_DAEMON_IMAGE_TAG>
imagePullPolicy
:
Always
resources
:
limits
:
...
...
@@ -38,12 +51,25 @@ spec:
requests
:
cpu
:
<CPU_REQUESTED>
volumeMounts
:
-
name
:
run-config
mountPath
:
'
/etc/run_config/'
readOnly
:
true
-
name
:
gunicorn-config
mountPath
:
'
/etc/gunicorn_config/'
readOnly
:
true
-
name
:
run-config
mountPath
:
'
/etc/run_config/'
readOnly
:
true
-
name
:
gunicorn-config
mountPath
:
'
/etc/gunicorn_config/'
readOnly
:
true
env
:
-
name
:
HTTP_PROXY
value
:
"
<HTTP_PROXY>"
-
name
:
http_proxy
value
:
"
<HTTP_PROXY>"
-
name
:
HTTPS_PROXY
value
:
"
<HTTPS_PROXY>"
-
name
:
https_proxy
value
:
"
<HTTPS_PROXY>"
-
name
:
NO_PROXY
value
:
"
<NO_PROXY>"
-
name
:
no_proxy
value
:
"
<NO_PROXY>"
volumes
:
-
name
:
run-config
secret
:
...
...
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