Repository navigation
Expand file tree
/
Copy pathdeployment.yaml
More file actions
executable file
·70 lines (70 loc) · 1.79 KB
/
Copy pathdeployment.yaml
File metadata and controls
executable file
·70 lines (70 loc) · 1.79 KB
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
67
68
69
70
apiVersion: apps/v1
kind: Deployment
metadata:
name: igneous
labels:
app: igneous
spec:
replicas: 1
selector:
matchLabels:
app: igneous
strategy:
type: Recreate
template:
metadata:
labels:
app: igneous
spec:
dnsPolicy: Default
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: igneous
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
topologyKey: "kubernetes.io/hostname"
labelSelector:
matchLabels:
app: igneous
containers:
- name: igneous
image: seunglab/igneous
volumeMounts:
- name: secrets
mountPath: "/root/.cloudvolume/secrets"
readOnly: true
- name: tmp
mountPath: "/tmp"
readOnly: false
- mountPath: /dev/shm
name: dshm
readOnly: false
imagePullPolicy: Always
resources:
requests:
cpu: "1000m" # reserve 1 vCPU per worker
memory: "8Gi" # reserve 8 GiB per worker
limits:
cpu: "1000m"
memory: "50Gi" # allow occasional RAM spike
env:
- name: SQS_URL
value: 'sqs://QUEUE_NAME'
- name: LEASE_SECONDS
value: "800"
volumes:
- name: secrets
secret:
secretName: secrets
- name: tmp
emptyDir: { medium: "Memory" }
- name: dshm
emptyDir:
medium: Memory