Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: batch/v1
- kind: Job
- metadata:
- name: fio-benchmark
- spec:
- backoffLimit: 0
- template:
- spec:
- containers:
- - name: fio
- image: axboe/fio:latest # Use a specific version for production workloads
- command:
- - /bin/sh
- - -c
- - |
- fio --name=randwrite --ioengine=libaio --rw=randwrite --bs=4k --direct=1 --size=1G --numjobs=1 --runtime=60 --group_reporting --output=/results/fio-output.txt
- volumeMounts:
- - name: pvc-volume
- mountPath: /data
- - name: results
- mountPath: /results
- restartPolicy: Never
- volumes:
- - name: pvc-volume
- persistentVolumeClaim:
- claimName: <your-pvc-name> # Replace with your PVC name
- - name: results
- emptyDir: {}
Advertisement
Add Comment
Please, Sign In to add comment