Files
my-rook-config/cluster/examples/kubernetes/ceph/flex/storageclass-test.yaml
T
subhamkrai b46e31dbee ci: add gh action for yaml linter
this commit adds gh action for yaml linter.

Signed-off-by: subhamkrai <srai@redhat.com>
2021-03-11 08:23:18 +05:30

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: ext4