All checks were successful
Run Check Script / check (pull_request) Successful in 1m3s
42 lines
892 B
YAML
42 lines
892 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: iobench
|
|
labels:
|
|
app: iobench
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: iobench
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: iobench
|
|
spec:
|
|
containers:
|
|
- name: fio
|
|
image: juicedata/fio:latest # Replace with your preferred fio image
|
|
imagePullPolicy: IfNotPresent
|
|
command: [ "sleep", "infinity" ] # Keeps the container running for kubectl exec
|
|
volumeMounts:
|
|
- name: iobench-pvc
|
|
mountPath: /data # Mount the PVC at /data
|
|
volumes:
|
|
- name: iobench-pvc
|
|
persistentVolumeClaim:
|
|
claimName: iobench-pvc # Matches your PVC name
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: iobench-pvc
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 5Gi
|
|
storageClassName: ceph-block
|
|
|