Files
my-rook-config/cluster/examples/kubernetes/ceph/flex/storageclass-test.yaml
T
Maksim Nabokikh 179e1a310d ceph: Add dynamic flexvolume expansion
Allow to dynamic resize of rook volumes

Signed-off-by: Maksim Nabokikh <maksim.nabokikh@flant.com>
2019-09-05 02:40:22 +04:00

26 lines
771 B
YAML

#################################################################################################################
# Create a storage class with a pool for a test environment. Only a single OSD is required in this example.
# kubectl create -f storageclass-test.yaml
#################################################################################################################
apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
name: replicapool
namespace: rook-ceph
spec:
replicated:
size: 1
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: rook-ceph-block
provisioner: ceph.rook.io/block
# Works for Kubernetes 1.14+
allowVolumeExpansion: true
parameters:
blockPool: replicapool
clusterNamespace: rook-ceph
fstype: xfs