job.yaml 735 B

12345678910111213141516171819202122232425262728
  1. apiVersion: batch/v1
  2. kind: Job
  3. metadata:
  4. name: fio
  5. spec:
  6. backoffLimit: 0
  7. template:
  8. spec:
  9. hostNetwork: true
  10. hostPID: true
  11. restartPolicy: Never
  12. containers:
  13. - command:
  14. - nsenter
  15. - --target
  16. - "1"
  17. - --mount
  18. - --uts
  19. - --ipc
  20. - --net
  21. - --pid
  22. - --no-fork
  23. - sudo --user=oleg --login /home/oleg/.guix-profile/bin/fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --bs=4k --iodepth=64 --readwrite=randrw --rwmixread=75 --size=100M --filename=/home/oleg/fio.txt
  24. image: docker-registry.wugi.info/library/util-linux-with-udev
  25. name: fio
  26. securityContext:
  27. privileged: true