Created
October 12, 2020 20:09
-
-
Save ams0/9d06dfbb92614ab9f104b9b63c077d4d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: dbench | |
spec: | |
storageClassName: nfs-client | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 5Gi | |
--- | |
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: dbench | |
spec: | |
template: | |
spec: | |
containers: | |
- name: dbench | |
image: sotoaster/dbench:latest | |
imagePullPolicy: IfNotPresent | |
env: | |
- name: DBENCH_MOUNTPOINT | |
value: /data | |
- name: FIO_SIZE | |
value: 1G | |
volumeMounts: | |
- name: dbench-pv | |
mountPath: /data | |
restartPolicy: Never | |
volumes: | |
- name: dbench-pv | |
persistentVolumeClaim: | |
claimName: dbench | |
backoffLimit: 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment