2019-09-12 12:32:17 +05:30
|
|
|
apiVersion: storage.k8s.io/v1
|
|
|
|
|
kind: StorageClass
|
|
|
|
|
metadata:
|
|
|
|
|
name: openebs-zfspv
|
|
|
|
|
allowVolumeExpansion: true
|
|
|
|
|
parameters:
|
2019-11-21 19:00:15 +05:30
|
|
|
recordsize: "4k"
|
2019-09-12 12:32:17 +05:30
|
|
|
compression: "on"
|
|
|
|
|
dedup: "on"
|
|
|
|
|
thinprovision: "yes"
|
2019-10-15 22:51:48 +05:30
|
|
|
#encryption: "on"
|
|
|
|
|
#keyformat: "raw"
|
|
|
|
|
#keylocation: "file:///home/pawan/key"
|
2019-11-21 19:00:15 +05:30
|
|
|
fstype: "zfs"
|
2019-09-12 12:32:17 +05:30
|
|
|
poolname: "zfspv-pool"
|
2019-11-06 21:20:49 +05:30
|
|
|
provisioner: zfs.csi.openebs.io
|
2019-11-01 06:46:04 +05:30
|
|
|
allowedTopologies:
|
|
|
|
|
- matchLabelExpressions:
|
|
|
|
|
- key: kubernetes.io/hostname
|
|
|
|
|
values:
|
|
|
|
|
- gke-zfspv-pawan-default-pool-c8929518-cgd4
|
|
|
|
|
- gke-zfspv-pawan-default-pool-c8929518-dxzc
|
2019-09-12 12:32:17 +05:30
|
|
|
---
|
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
metadata:
|
|
|
|
|
name: csi-zfspv
|
|
|
|
|
spec:
|
|
|
|
|
storageClassName: openebs-zfspv
|
|
|
|
|
accessModes:
|
|
|
|
|
- ReadWriteOnce
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
storage: 4Gi
|
|
|
|
|
---
|
2019-11-21 19:00:15 +05:30
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
2019-09-12 12:32:17 +05:30
|
|
|
metadata:
|
|
|
|
|
name: fio
|
2019-11-21 19:00:15 +05:30
|
|
|
labels:
|
|
|
|
|
name: fio
|
2019-09-12 12:32:17 +05:30
|
|
|
spec:
|
2019-11-21 19:00:15 +05:30
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
name: fio
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
name: fio
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- resources:
|
|
|
|
|
name: perfrunner
|
|
|
|
|
image: openebs/tests-fio
|
|
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
|
command: ["/bin/bash"]
|
|
|
|
|
args: ["-c", "while true ;do sleep 50; done"]
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- mountPath: /datadir
|
|
|
|
|
name: fio-vol
|
|
|
|
|
volumes:
|
|
|
|
|
- name: fio-vol
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: csi-zfspv
|