-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_job.yaml
85 lines (85 loc) · 2.36 KB
/
example_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
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
apiVersion: batch/v1
kind: Job
metadata:
name: pdb-data-cruncher
annotations:
{}
labels:
{}
# Change to desired namespace here
namespace: strnadova-ns
spec:
selector:
matchLabels:
template:
metadata:
labels:
{}
# Change to desired namespace here
namespace: strnadova-ns
spec:
containers:
- imagePullPolicy: Always
name: pdb-data-cruncher
securityContext:
runAsNonRoot: true
readOnlyRootFilesystem: false
capabilities:
drop:
- ALL
privileged: false
allowPrivilegeEscalation: false
runAsUser: 1000
seccompProfile:
type:
RuntimeDefault
_init: false
resources:
requests:
memory: 16000Mi
limits:
memory: 32000Mi
# If configuraiton via environmental variables needed, uncomment bellow and add it there
# env:
# - name: SKIP_DATA_DOWNLOAD
# value: "True"
# - name: MAX_PROCESS_COUNT
# value: "1"
volumeMounts:
- name: pdb-data-cruncher-volume
mountPath: /app/data
subPath: pdb-data-cruncher/
# Replace the repository in the image name with your cerit.io repository name
image: cerit.io/ivetastrnadova/pdb-data-cruncher
terminationGracePeriodSeconds: 60
stdin: false
stdinOnce: false
tty: false
# If uncommented, container will start up in infinite loop without running anything else
# Useful if you want to exec into it and run commands from inside
# command:
# - tail
# args:
# - '-f'
# - /dev/null
__active: true
restartPolicy: Never
volumes:
- _type: persistentVolumeClaim
persistentVolumeClaim:
claimName: pdb-data-cruncher-storage
name: pdb-data-cruncher-volume
__newPvc:
type: persistentvolumeclaim
metadata:
# Change to desired namespace here
namespace: strnadova-ns
spec:
storageClassName: ''
volumeName: ''
resources:
requests: {}
backoffLimit: 0
suspend: false
replicas: 1
__clone: true