forked from chembl/chembl_webservices_py3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-deployment.yml
42 lines (42 loc) · 948 Bytes
/
k8s-deployment.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: chembl-webservices-py3-deployment
spec:
selector:
matchLabels:
app: chembl-webservices-py3-server
tier: backend
replicas: 6
template:
metadata:
labels:
app: chembl-webservices-py3-server
tier: backend
spec:
containers:
- name: chembl-webservices-py3-container
securityContext:
runAsUser: <RUN_AS_UID>
runAsGroup: <RUN_AS_GID>
# TODO CHECK HOW TO MOUNT NFS FROM CHEMBL
envFrom:
- configMapRef:
name: chembl-webservices-py3-cm
image: <DOCKER_IMAGE>:<VERSION>
imagePullPolicy: Always
ports:
- containerPort: 8000
---
apiVersion: v1
kind: Service
metadata:
name: chembl-webservices-py3-service
spec:
selector:
app: chembl-webservices-py3-server
ports:
- protocol: TCP
port: 8000
targetPort: 8000
type: NodePort