-
Notifications
You must be signed in to change notification settings - Fork 28
/
gn_genie.yaml
115 lines (115 loc) · 3.65 KB
/
gn_genie.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "4"
creationTimestamp: null
generation: 1
labels:
run: genome-nexus-genie
name: genome-nexus-genie
namespace: genome-nexus
selfLink: /apis/extensions/v1beta1/namespaces/genome-nexus/deployments/genome-nexus-genie
spec:
replicas: 2
selector:
matchLabels:
run: genome-nexus-genie
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
run: genome-nexus-genie
spec:
containers:
- env:
- name: SERVER_PORT
value: "8888"
- name: MONGODB_URI
value: mongodb://genie-gn-mongo-mongodb:27017/annotator?connectTimeoutMS=120000
image: genomenexus/gn-spring-boot:1.3.0
imagePullPolicy: Always
command: [ "java" ]
args: [
"-Dspring.data.mongodb.uri=$(MONGODB_URI)",
# this is to use VEP running inside K8s. Remove to use
# grch37.rest.ensembl.org instead
"-Dgn_vep.region.url=http://genie-gn-vep/vep/human/region/VARIANT",
"-Dvep.max_page_size=5000",
"-Dgn_vep.timeout.seconds=300",
"-Dmyvariantinfo.url=https://myvariant.info/v1/variant/VARIANT",
"-Dmyvariantinfo.max_page_size=10",
"-Dgenexrefs.url=http://grch37.rest.ensembl.org/xrefs/id/ACCESSION?content-type=application/json",
"-DmutationAssessor.url=http://mutationassessor.org/r3/?cm=var&var=VARIANT&frm=json&fts=input,rgaa,rgvt,msa,pdb,F_impact,F_score,vc_score,vs_score,info,var,gene,uprot,rsprot,gaps,msa_height,chr,rs_pos,rs_res,up_pos,up_res,cnt_cosmic,cnt_snps",
"-Dpdb.header_service_url=http://files.rcsb.org/header/PDB_ID.pdb",
"-Doncokb.url=https://www.oncokb.org/api/v1/annotate/mutations/byProteinChange?PROTEINCHANGE",
"-jar",
"/app.war"
]
readinessProbe:
httpGet:
path: /ensembl/canonical-transcript/hgnc/tp53?isoformOverrideSource=uniprot
port: 8888
initialDelaySeconds: 240
timeoutSeconds: 30
periodSeconds: 60
# TODO: create a better liveness probe (this is just readiness with
# more lenience)
livenessProbe:
httpGet:
path: /ensembl/canonical-transcript/hgnc/tp53?isoformOverrideSource=uniprot
port: 8888
initialDelaySeconds: 240
timeoutSeconds: 120
periodSeconds: 240
name: genome-nexus-genie
ports:
- containerPort: 8888
protocol: TCP
resources:
requests:
memory: 3Gi
limits:
memory: 7Gi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
# run on genome nexus machines
tolerations:
- key: "dedicated"
operator: "Equal"
value: "eks-genome-nexus"
effect: "NoSchedule"
nodeSelector:
eks.amazonaws.com/nodegroup: eks-genome-nexus
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status: {}
---
apiVersion: v1
kind: Service
metadata:
labels:
run: genome-nexus-genie
app: genome-nexus-genie
name: genome-nexus-genie
namespace: genome-nexus
selfLink: /api/v1/namespaces/genome-nexus/services/genome-nexus-genie
spec:
ports:
- port: 80
name: http
targetPort: 8888
- port: 443
name: https
targetPort: 8888
selector:
run: genome-nexus-genie
type: ClusterIP