-
Notifications
You must be signed in to change notification settings - Fork 0
/
mqldt-job.yaml
executable file
·46 lines (46 loc) · 1.18 KB
/
mqldt-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
apiVersion: batch/v1
kind: Job
metadata:
labels:
run: mqldt
name: mqldt
spec:
template:
metadata:
labels:
run: mqldt
spec:
containers:
- name: mqldt
# image: docker.io/stmassey/mqldt
# image: default-route-openshift-image-registry.apps.es02.ocp.hursley.ibm.com/mqldt/mqldt
# image: image-registry.openshift-image-registry.svc:5000
image: uk.icr.io/mqperf/mqldt
imagePullPolicy: Always
terminationMessagePath: /dev/termination-log
volumeMounts:
- name: data
mountPath: /mnt/mqldt
env:
- name: MQLDT_DIRECTORY
value: /mnt/mqldt
- name: MQLDT_QM
value: "1"
resources:
requests:
memory: "1Gi"
cpu: "4"
limits:
memory: "1Gi"
cpu: "4"
dnsPolicy: ClusterFirst
restartPolicy: OnFailure
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: data
persistentVolumeClaim:
claimName: mqldt-pvc
securityContext:
initVolumeAsRoot: true
fsGroup: 999