From 8c9014f33c05cbb6eeb5610cc554e97997fcaa42 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 7 Jun 2021 21:25:32 +0200 Subject: [PATCH] Need to define default storage class --- rook.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rook.md b/rook.md index dc48172..c87d6bc 100644 --- a/rook.md +++ b/rook.md @@ -87,3 +87,14 @@ rook-ceph-mds-myfs-b-dd78b444b-49h5h 1/1 Running 0 18s [21:07] server47.place7:~/ungleich-k8s/rook# ``` + +## DefaultStorageClass + +By default none of the created storage classes are the "default" of +the cluster. So we need to set one of them, if persistentvolumeclaims +should be deployed: + +``` +[21:22] server47.place7:~/ungleich-k8s/rook# kubectl patch storageclass rook-ceph-block -p '{"metadata": {"annotations":{"stor +ageclass.kubernetes.io/is-default-class":"true"}}}' +```