#创建有冗余500IOPS的storageClass
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: vsan-rep
provisioner: kubernetes.io/vsphere-volume
parameters:
datastore: vsanDatastore
diskformat: thin
storagePolicyName: "vSAN Default Storage Policy"
fstype: ext3
iopslimit-migrationparam: "500"
---
#创建无冗余1000IOPS的storageClass
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: vsan-no-rep
provisioner: kubernetes.io/vsphere-volume
parameters:
datastore: vsanDatastore
diskformat: thin
storagePolicyName: "vsan-no-rep"
fstype: ext3
iopslimit-migrationparam: "1000"