34 lines
975 B
YAML
34 lines
975 B
YAML
apiVersion: storage.k8s.io/v1
|
|
kind: StorageClass
|
|
metadata:
|
|
name: openebs-jiva-csi-sc
|
|
provisioner: jiva.csi.openebs.io
|
|
allowVolumeExpansion: true
|
|
parameters:
|
|
cas-type: "jiva"
|
|
policy: "example-jivavolumepolicy"
|
|
---
|
|
apiVersion: storage.k8s.io/v1
|
|
kind: StorageClass
|
|
metadata:
|
|
name: openebs-hostpath
|
|
annotations:
|
|
openebs.io/cas-type: local
|
|
cas.openebs.io/config: |
|
|
# hostpath type will create a PV by
|
|
# creating a sub-directory under the
|
|
# BASEPATH provided below.
|
|
- name: StorageType
|
|
value: "hostpath"
|
|
# Specify the location (directory) where
|
|
# where PV(volume) data will be saved.
|
|
# A sub-directory with pv-name will be
|
|
# created. When the volume is deleted,
|
|
# the PV sub-directory will be deleted.
|
|
#Default value is /var/openebs/local
|
|
- name: BasePath
|
|
value: "/var/openebs/local/"
|
|
provisioner: openebs.io/local
|
|
volumeBindingMode: WaitForFirstConsumer
|
|
reclaimPolicy: Delete
|