mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 14:30:12 +01:00
51 lines
1,016 B
YAML
51 lines
1,016 B
YAML
|
|
apiVersion: storage.k8s.io/v1
|
||
|
|
kind: StorageClass
|
||
|
|
metadata:
|
||
|
|
name: zfspv-block
|
||
|
|
allowVolumeExpansion: true
|
||
|
|
parameters:
|
||
|
|
poolname: "zfspv-pool"
|
||
|
|
provisioner: zfs.csi.openebs.io
|
||
|
|
---
|
||
|
|
kind: PersistentVolumeClaim
|
||
|
|
apiVersion: v1
|
||
|
|
metadata:
|
||
|
|
name: block-claim
|
||
|
|
spec:
|
||
|
|
volumeMode: Block
|
||
|
|
storageClassName: zfspv-block
|
||
|
|
accessModes:
|
||
|
|
- ReadWriteOnce
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
storage: 5Gi
|
||
|
|
---
|
||
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
name: fiob
|
||
|
|
spec:
|
||
|
|
replicas: 1
|
||
|
|
selector:
|
||
|
|
matchLabels:
|
||
|
|
name: fiob
|
||
|
|
template:
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
name: fiob
|
||
|
|
spec:
|
||
|
|
containers:
|
||
|
|
- resources:
|
||
|
|
name: perfrunner
|
||
|
|
image: openebs/tests-fio
|
||
|
|
imagePullPolicy: IfNotPresent
|
||
|
|
command: ["/bin/bash"]
|
||
|
|
args: ["-c", "while true ;do sleep 50; done"]
|
||
|
|
volumeDevices:
|
||
|
|
- devicePath: /dev/xvda
|
||
|
|
name: storage
|
||
|
|
volumes:
|
||
|
|
- name: storage
|
||
|
|
persistentVolumeClaim:
|
||
|
|
claimName: block-claim
|