mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 21:34:48 +07:00
test: add storage benchmark
This commit is contained in:
parent
c244195d8a
commit
9135b60695
38
test/benchmark/storage/dbench-rwo.yaml
Normal file
38
test/benchmark/storage/dbench-rwo.yaml
Normal file
@ -0,0 +1,38 @@
|
||||
# kubectl apply -f dbench-rwo.yaml
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: dbench-rwo
|
||||
spec:
|
||||
storageClassName: standard-rwo
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
---
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: dbench-rwo
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: dbench
|
||||
image: zayashv/dbench:latest
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: DBENCH_MOUNTPOINT
|
||||
value: /data
|
||||
- name: DBENCH_QUICK
|
||||
value: "no"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: dbench-rwo
|
38
test/benchmark/storage/dbench-rwx.yaml
Normal file
38
test/benchmark/storage/dbench-rwx.yaml
Normal file
@ -0,0 +1,38 @@
|
||||
# kubectl apply -f dbench-rwx.yaml
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: dbench-rwx
|
||||
spec:
|
||||
storageClassName: standard-rwx
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
---
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: dbench-rwx
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: dbench
|
||||
image: zayashv/dbench:latest
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: DBENCH_MOUNTPOINT
|
||||
value: /data
|
||||
- name: DBENCH_QUICK
|
||||
value: "no"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: dbench-rwx
|
Loading…
Reference in New Issue
Block a user