theshire/kubernetes/tools/kbench.yaml

51 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2024-01-11 15:03:54 -06:00
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: kbench-pvc
spec:
2024-07-21 07:31:15 -05:00
# storageClassName: zfs-generic-nfs-csi
storageClassName: openebs-hostpath
# storageClassName: openebs-zfs
2024-01-11 15:03:54 -06:00
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 33Gi
---
apiVersion: batch/v1
kind: Job
metadata:
name: kbench
spec:
template:
metadata:
labels:
kbench: fio
spec:
containers:
- name: kbench
image: yasker/kbench:latest
imagePullPolicy: Always
env:
# - name: QUICK_MODE # for debugging
# value: "1"
- name: FILE_NAME
value: "/volume/test"
- name: SIZE
value: "30G" # must be 10% smaller than the PVC size due to filesystem also took space
- name: CPU_IDLE_PROF
value: "disabled" # must be "enabled" or "disabled"
volumeMounts:
- name: vol
mountPath: /volume/
# volumeDevices:
# - name: vol
# devicePath: /volume/test
restartPolicy: Never
volumes:
- name: vol
persistentVolumeClaim:
claimName: kbench-pvc
backoffLimit: 0