-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmax-object-detector-deployment.yml
43 lines (43 loc) · 1.1 KB
/
max-object-detector-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
43
apiVersion: apps/v1
kind: Deployment
metadata:
name: max-object-detector
labels:
app: max-object-detector
spec:
selector:
matchLabels:
app: max-object-detector
replicas: 5
template:
metadata:
labels:
app: max-object-detector
spec:
topologySpreadConstraints:
- maxSkew: 5
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: max-object-detector
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: "app"
operator: In
values:
- max-object-detector
topologyKey: "kubernetes.io/hostname"
containers:
- name: max-object-detector
image: quay.io/codait/max-object-detector:latest
ports:
- containerPort: 5000
env:
- name: DISABLE_WEB_APP
value: "false"