-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcronjob_test_deploy_embargo.yaml
97 lines (97 loc) · 2.9 KB
/
cronjob_test_deploy_embargo.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
90
91
92
93
94
95
96
97
# This file is a test deployment of the cronjob
# the full deployment can be found:
# https://github.com/slaclab/usdf-embargo-deploy/tree/u/beckynevin/transfer-embargo-deploy/kubernetes/overlays/summit
# ---
# apiVersion: v1
# kind: PersistentVolumeClaim
# metadata:
# name: sdf-group-rubin
# namespace: devel-transfer-embargo
# spec:
# storageClassName: sdf-group-rubin
# accessModes:
# - ReadWriteMany
# resources:
# requests:
# storage: 1Gi
# ---
# apiVersion: v1
# kind: PersistentVolumeClaim
# metadata:
# name: sdf-data-rubin
# namespace: devel-transfer-embargo
# spec:
# storageClassName: sdf-data-rubin
# accessModes:
# - ReadWriteMany
# resources:
# requests:
# storage: 1Gi
# ---
apiVersion: batch/v1
kind: CronJob
metadata:
name: transfer-embargo-temp
namespace: devel-transfer-embargo
spec:
schedule: "* * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: transfer-embargo-container
image: "ghcr.io/lsst-dm/transfer-embargo:latest"
imagePullPolicy: Always
env:
- name: FROMREPO
value: "./tests_docker/temp_from"
- name: TOREPO
value: "./tests_docker/temp_to"
- name: INSTRUMENT
value: "LATISS"
- name: EMBARGO_HRS
value: "1063"
# - name: datasettype
# value: "raw"
# - name: collection
# value: "LATISS/raw/all"
- name: NOW
value: "2020-03-01 23:59:59.999999"
- name: MOVE
value: "False"
# - name: PGPASSWORD
# valueFrom:
# secretKeyRef:
# name: db-env
# key: pg_password
# - name: PGUSER
# valueFrom:
# secretKeyRef:
# name: db-env
# key: pg_user
# - name: S3_ENDPOINT_URL
# value: http://s3dfrgw.slac.stanford.edu
# - name: AWS_ACCESS_KEY_ID
# valueFrom:
# secretKeyRef:
# name: s3
# key: s3_access
# - name: AWS_SECRET_ACCESS_KEY
# valueFrom:
# secretKeyRef:
# name: s3
# key: s3_key
volumeMounts:
- name: sdf-group-rubin
mountPath: /sdf/group/rubin
- name: sdf-data-rubin
mountPath: /sdf/data/rubin
volumes:
- name: sdf-group-rubin
persistentVolumeClaim:
claimName: sdf-group-rubin
- name: sdf-data-rubin
persistentVolumeClaim:
claimName: sdf-data-rubin
restartPolicy: OnFailure