-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
56 lines (56 loc) · 1.37 KB
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: baseball-reference-predictor
labels:
app: baseball-reference-predictor
spec:
replicas: 1
selector:
matchLabels:
app: baseball-reference-predictor
template:
metadata:
labels:
app: baseball-reference-predictor
spec:
containers:
- name: baseball-reference-predictor
image: <your-docker-registry>/baseball-reference-predictor:latest
ports:
- containerPort: 3000
stdin: true
tty: true
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: SERVICE_ACCOUNT
valueFrom:
fieldRef:
fieldPath: spec.serviceAccountName
readinessProbe:
httpGet:
path: /healthz
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
volumeMounts:
- name: istio-certs
mountPath: /etc/certs
readOnly: true
volumes:
- name: istio-certs
secret:
secretName: istio.default