-
Notifications
You must be signed in to change notification settings - Fork 0
/
job-tprocc-mariadb-ephemeral.yaml
49 lines (49 loc) · 1.52 KB
/
job-tprocc-mariadb-ephemeral.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
apiVersion: batch/v1
kind: Job
metadata:
name: job-tprocc-mariadb-ephemeral
spec:
template:
spec:
initContainers:
- image: ghcr.io/cci-moc/k-hammer:nightly
name: hammerdb-build
imagePullPolicy: IfNotPresent
command:
- "/home/hammerdb/HammerDB-4.5/hammerdbcli"
args:
- "auto"
- "/home/hammerdb/HammerDB-4.5/maria_ephemeral_tprocc_build.tcl"
env:
- name: "TMP"
value: "/tmp"
ports:
- containerPort: 8080
volumeMounts:
- name: vol-hammer-scripts
mountPath: /home/hammerdb/HammerDB-4.5/maria_ephemeral_tprocc_build.tcl
subPath: maria_ephemeral_tprocc_build.tcl
containers:
- image: ghcr.io/cci-moc/k-hammer:nightly
name: hammerdb-run
imagePullPolicy: IfNotPresent
command:
- "/home/hammerdb/HammerDB-4.5/hammerdbcli"
args:
- "auto"
- "/home/hammerdb/HammerDB-4.5/maria_ephemeral_tprocc_run.tcl"
env:
- name: "TMP"
value: "/tmp"
ports:
- containerPort: 8080
volumeMounts:
- name: vol-hammer-scripts
mountPath: /home/hammerdb/HammerDB-4.5/maria_ephemeral_tprocc_run.tcl
subPath: maria_ephemeral_tprocc_run.tcl
volumes:
- name: vol-hammer-scripts
configMap:
name: cm-k-hammer
restartPolicy: Never
backoffLimit: 2