-
Notifications
You must be signed in to change notification settings - Fork 18
/
app-job.yaml
43 lines (43 loc) · 1.03 KB
/
app-job.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
apiVersion: batch/v1
kind: Job
metadata:
name: app-job-rsync
spec:
template:
spec:
volumes:
- name: data-input
gcePersistentDisk:
pdName: glow-data-disk-200
fsType: ext4
- name: data-output
emptyDir: {}
initContainers:
- name: init
image: google/cloud-sdk:275.0.0-alpine
command:
- /bin/sh
- -c
- gsutil -m rsync -dr gs://glow-sportradar/ /data/input
volumeMounts:
- name: data-input
mountPath: /data/input
containers:
- name: init
image: google/cloud-sdk:275.0.0-alpine
command:
- /bin/sh
- -c
- gsutil -m rsync -dr gs://glow-sportradar/ /data/input
lifecycle:
postStart:
exec:
command: []
preStop:
exec:
command: ["/bin/sh", "-c", "echo Stop from the..."]
volumeMounts:
- name: data-input
mountPath: /data/input
restartPolicy: Never
backoffLimit: 0