-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexample-meshing.yaml
62 lines (62 loc) · 1.88 KB
/
example-meshing.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
57
58
59
60
61
62
apiVersion: apps/v1
kind: Deployment
metadata:
name: meshing-worker
labels:
app: meshing-worker
spec:
selector:
matchLabels:
app: meshing-worker
replicas: 1
template:
metadata:
labels:
app: meshing-worker
spec:
dnsPolicy: Default
volumes:
- name: google-secret
secret:
secretName: google-secret
- name: cave-secret
secret:
secretName: cave-secret
- name: aws-secret
secret:
secretName: aws-secret
containers:
- name: meshing-worker
image: gcr.io/the-bestest-gcloud-project/pychunkedgraph:MyCoolDockerImage
imagePullPolicy: Always
resources:
requests:
memory: 8G
env:
- name: APP_SETTINGS
value: pychunkedgraph.app.config.DeploymentWithRedisConfig
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /root/.cloudvolume/secrets/google-secret.json
- name: BIGTABLE_PROJECT
value: the-bestest-gcloud-project
- name: BIGTABLE_INSTANCE
value: <bigtable_instance>
- name: FLASK_APP
value: run_dev.py
volumeMounts:
- name: google-secret
mountPath: /root/.cloudvolume/secrets/google-secret.json
subPath: google-secret.json
readOnly: true
- name: cave-secret
mountPath: /root/.cloudvolume/secrets/cave-secret.json
subPath: cave-secret.json
readOnly: true
- name: aws-secret
mountPath: /root/.cloudvolume/secrets/aws-secret.json
subPath: aws-secret.json
readOnly: true
command: ["python"]
args: ["pychunkedgraph/meshing/mesh_worker.py", "--qurl", "https://sqs.us-east-1.amazonaws.com/10000101010/my-cool-queue", "--lease_seconds", "30"]
nodeSelector:
cloud.google.com/gke-nodepool: <node-pool-name>