Skip to content

Instantly share code, notes, and snippets.

@welshstew
Last active August 13, 2020 10:08
Show Gist options
  • Select an option

  • Save welshstew/f4e6fe2754bc23c904001be5916e9320 to your computer and use it in GitHub Desktop.

Select an option

Save welshstew/f4e6fe2754bc23c904001be5916e9320 to your computer and use it in GitHub Desktop.
fbench disk test job
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: fbench-pv-claim
spec:
storageClassName: thin
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
---
apiVersion: batch/v1
kind: Job
metadata:
name: fbench
spec:
template:
spec:
containers:
- name: fbench
image: quay.io/swinches/fbench:latest
imagePullPolicy: Always
env:
- name: DBENCH_MOUNTPOINT
value: /data
volumeMounts:
- name: fbench-pv
mountPath: /data
restartPolicy: Never
volumes:
- name: fbench-pv
persistentVolumeClaim:
claimName: fbench-pv-claim
backoffLimit: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment