-
Notifications
You must be signed in to change notification settings - Fork 1
/
kdbench-sample.yaml
55 lines (55 loc) · 1.44 KB
/
kdbench-sample.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
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: kdbench-pv-claim
labels:
fio: kdbench
spec:
storageClassName: << INPUT STORAGECLASS >> # Must change in here
# storageClassName: managed-nfs-storage
# storageClassName: gp2
# storageClassName: default
# storageClassName: standard
# storageClassName: nks-block-storage
accessModes:
- ReadWriteOnce # (optional) RWO - ReadWriteOnce, ROX - ReadOnlyMany, RWX - ReadWriteMany, RWOP - ReadWriteOncePod
resources:
requests:
storage: 100Gi # (optional) filestore standard - 1000Gi, filestore premium - 2560Gi
---
apiVersion: batch/v1
kind: Job
metadata:
name: kdbench
labels:
fio: kdbench
spec:
ttlSecondsAfterFinished: 0
template:
spec:
containers:
- name: kdbench
image: sysnet4admin/kdbench:latest
imagePullPolicy: Always
env:
- name: KDBENCH_MOUNTPOINT
value: /tmp
# - name: STORAGECLASS
# value: your-storageclass
# - name: KDBENCH_QUICK
# value: "yes"
# - name: FIO_SIZE
# value: 1G
# - name: FIO_OFFSET_INCREMENT
# value: 256M
# - name: FIO_DIRECT
# value: "1"
volumeMounts:
- name: kdbench-pv
mountPath: /tmp
restartPolicy: Never
volumes:
- name: kdbench-pv
persistentVolumeClaim:
claimName: kdbench-pv-claim
backoffLimit: 4