-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeployment-periodic.yaml
89 lines (89 loc) · 2.7 KB
/
deployment-periodic.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
apiVersion: apps/v1
kind: Deployment
metadata:
name: jobmanager-periodic
spec:
selector:
matchLabels:
app: jobmanager-periodic
replicas: 1
template:
metadata:
labels:
app: jobmanager-periodic
spec:
containers:
- name: celery-periodic
image: registry.cullen.io/jobmanager-api:v0.0.24
command: ["/bin/sh"]
args: ["-c", "/code/common/celery_worker_periodic.sh"]
# env:
# - name: USGS_EE_PASS
# valueFrom:
# secretKeyRef:
# name: usgs-ee-pass
# key: password
# - name: S3_SECRET_KEY
# valueFrom:
# secretKeyRef:
# name: minio-s3-secret-key
# key: password
# - name: PSQL_DB_PASS
# valueFrom:
# secretKeyRef:
# name: jobmanager-psql-db-password
# key: password
# envFrom:
# - configMapRef:
# name: jobmanager-config
imagePullPolicy: Always
volumeMounts:
- name: nfsvol
mountPath: /mnt/zeusdrobo
- mountPath: /code/testdir/
name: testing-volume-mounts
- mountPath: /code/config.yaml
subPath: config.yaml
name: jobmanager-config-volume
# env:
# - name: USGS_EE_PASS
# valueFrom:
# secretKeyRef:
# name: usgs-ee-pass
# key: password
# - name: S3_SECRET_KEY
# valueFrom:
# secretKeyRef:
# name: minio-s3-secret-key
# key: password
# - name: PSQL_DB_PASS
# valueFrom:
# secretKeyRef:
# name: jobmanager-psql-db-password
# key: password
# envFrom:
# - configMapRef:
# name: jobmanager-config
imagePullPolicy: Always
volumeMounts:
- name: nfsvol
mountPath: /mnt/zeusdrobo
- mountPath: /code/testdir/
name: testing-volume-mounts
- mountPath: /code/config.yaml
subPath: config.yaml
name: jobmanager-config-volume
imagePullSecrets:
- name: regcred
volumes:
- name: nfsvol
persistentVolumeClaim:
claimName: nfs-pvc
- emptyDir: {}
name: testing-volume-mounts
- configMap:
name: jobmanager-config
items:
- key: config.yaml
path: config.yaml
name: jobmanager-config-volume