Guest User

Untitled

a guest
Dec 9th, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. apiVersion: batch/v1
  2. kind: Job
  3. metadata:
  4. name: fio-benchmark
  5. spec:
  6. backoffLimit: 0
  7. template:
  8. spec:
  9. containers:
  10. - name: fio
  11. image: axboe/fio:latest # Use a specific version for production workloads
  12. command:
  13. - /bin/sh
  14. - -c
  15. - |
  16. fio --name=randwrite --ioengine=libaio --rw=randwrite --bs=4k --direct=1 --size=1G --numjobs=1 --runtime=60 --group_reporting --output=/results/fio-output.txt
  17. volumeMounts:
  18. - name: pvc-volume
  19. mountPath: /data
  20. - name: results
  21. mountPath: /results
  22. restartPolicy: Never
  23. volumes:
  24. - name: pvc-volume
  25. persistentVolumeClaim:
  26. claimName: <your-pvc-name> # Replace with your PVC name
  27. - name: results
  28. emptyDir: {}
Advertisement
Add Comment
Please, Sign In to add comment