forked from AllenInstitute/MinneTaskQueue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminnietask.yml
59 lines (59 loc) · 1.52 KB
/
minnietask.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: minnietask-cpu2
name: minnietask-cpu2
spec:
replicas: 200
selector:
matchLabels:
run: minnietask-cpu2
strategy:
rollingUpdate:
maxSurge: 100%
maxUnavailable: 100%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
run: minnietask-cpu2
spec:
containers:
- image: fcollman/minnietask:v21
name: minnietask-cpu2
imagePullPolicy: IfNotPresent
command: ["/bin/sh"]
args:
[
"-c",
"while true; do python -u worker.py https://sqs.us-west-2.amazonaws.com/629034007606/forrest 240; done",
]
env:
- name: CLOUDSDK_CORE_PROJECT
value: ${CLOUDSDK_CORE_PROJECT}
- name: GOOGLE_APPLICATION_CREDENTIALS
value: "/root/.cloudvolume/secrets/google-secret.json"
- name: BUMP
value: "test2"
resources:
requests:
cpu: 600m
memory: 1000Mi
volumeMounts:
- name: secrets
mountPath: /root/.cloudvolume/secrets
readOnly: true
- name: boto
mountPath: /root/.boto
readOnly: true
subPath: minimal_boto
dnsPolicy: Default
volumes:
- name: secrets
secret:
secretName: secrets2
- name: boto
secret:
secretName: boto