-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreplicaset.yaml
44 lines (40 loc) · 945 Bytes
/
replicaset.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: train-model-deployment
spec:
replicas: 1
# maxReplicas: 4
# minReplicas: 2
selector:
matchLabels:
app: train-model-deployment
template:
metadata:
labels:
app: train-model-deployment
spec:
containers:
- name: train-model-deployment
image: zpozdniakov/train-model:local
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5000
resources:
requests:
memory: 5Mi
livenessProbe:
httpGet:
path: /livetest
port: 5000
httpHeaders:
- name: Custom-Header
value: Awesome
initialDelaySeconds: 5
periodSeconds: 3
readinessProbe:
httpGet:
path: /readiness
port: 5000
initialDelaySeconds: 5
periodSeconds: 3