forked from longhorn/dbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdbench.yaml
47 lines (47 loc) · 1.04 KB
/
dbench.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
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: dbench-pv-claim
spec:
storageClassName: longhorn
volumeMode: Block
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
---
apiVersion: batch/v1
kind: Job
metadata:
name: dbench
spec:
template:
spec:
containers:
- name: dbench
image: dormi330/longhornio-dbench:v1.0
imagePullPolicy: Always
securityContext:
# Need this for fio be able to invalid the cache
privileged: true
env:
#- name: DBENCH_MOUNTPOINT
# value: /data
# - name: DBENCH_QUICK
# value: "yes"
- name: FIO_SIZE
value: 1G
# - name: FIO_OFFSET_INCREMENT
# value: 256M
# - name: FIO_DIRECT
# value: "0"
#volumeMounts:
#- name: dbench-pv
# mountPath: /data
restartPolicy: Never
volumes:
- name: dbench-pv
persistentVolumeClaim:
claimName: dbench-pv-claim
backoffLimit: 4