-
Notifications
You must be signed in to change notification settings - Fork 0
/
predictor_deployment.yaml
66 lines (66 loc) · 1.63 KB
/
predictor_deployment.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
---
apiVersion: "apps/v1"
kind: "StatefulSet"
metadata:
name: "baskervillehall-predictor"
namespace: "default"
labels:
app: "baskervillehall-predictor"
spec:
replicas: 3
serviceName: "baskervillehall-predictor"
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
app: "baskervillehall-predictor"
template:
metadata:
labels:
app: "baskervillehall-predictor"
spec:
restartPolicy: Always
containers:
- name: "baskervillehall-predictor"
image: "equalitie/baskervillehall:latest"
imagePullPolicy: Always
resources:
requests:
memory: "4Gi"
cpu: "2000m"
limits:
memory: "14Gi"
cpu: "3000m"
command:
- python
args:
- /usr/bin/baskervillehall/src/baskervillehall/main.py
- predict
envFrom:
- configMapRef:
name: baskervillehall
env:
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: S3_ACCESS
valueFrom:
secretKeyRef:
name: baskerville-secrets
key: s3_access
- name: S3_SECRET
valueFrom:
secretKeyRef:
name: baskerville-secrets
key: s3_secret
- name: S3_ENDPOINT
valueFrom:
secretKeyRef:
name: baskerville-secrets
key: s3_endpoint
- name: S3_REGION
valueFrom:
secretKeyRef:
name: baskerville-secrets
key: s3_region