Skip to content
Snippets Groups Projects
Commit f3e4d6c8 authored by David Mendez's avatar David Mendez
Browse files

Merge branch 'staging' into 'master'

Add a deployment strategy that makes sure that old pods are terminated before the new ones start

See merge request !104
parents 41fd54f8 2a2a9ae0
Branches
No related tags found
1 merge request!104Add a deployment strategy that makes sure that old pods are terminated before the new ones start
......@@ -107,11 +107,15 @@ export default {
const moleculeChEMBLidsRawList = setItems.map(
(item) => item.molecule_chembl_id
)
this.compoundChEMBLIDs = [...new Set(moleculeChEMBLidsRawList)]
this.compoundChEMBLIDs = [...new Set(moleculeChEMBLidsRawList)].filter(
(chemblID) => chemblID != null && chemblID !== ''
)
const targetChEMBLidsRawList = setItems.map(
(item) => item.target_chembl_id
)
this.targetChEMBLIDs = [...new Set(targetChEMBLidsRawList)]
this.targetChEMBLIDs = [...new Set(targetChEMBLidsRawList)].filter(
(chemblID) => chemblID != null && chemblID !== ''
)
} catch (e) {
this.showError = true
this.errorMsg = e.message
......
......@@ -5,6 +5,12 @@ metadata:
namespace: <NAMESPACE>
spec:
replicas: <NUM_REPLICAS>
strategy:
# This strategy avoids conflicts with static files by ensuring old pods are terminated before new ones start.
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 100%
selector:
matchLabels:
app: eubopen-web
......@@ -39,6 +45,11 @@ spec:
value: "<NO_PROXY>"
- name: no_proxy
value: "<NO_PROXY>"
readinessProbe:
httpGet:
path: '/'
port: 3000
successThreshold: 3
volumes:
- name: run-config
secret:
......
Subproject commit baf83212dc42988c9bf4f31a68c9d708b73e1890
Subproject commit 5cdef94f594e68067111b9e192142fce0620def4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment