You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ oc patch storageclass standard -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "true"}}}'
37
46
----
47
+
+
48
+
[NOTE]
49
+
====
50
+
You can have multiple default storage classes for a short time. However, you should ensure that only one default storage class exists eventually.
51
+
52
+
With multiple default storage classes present, any persistent volume claim (PVC) requesting the default storage class (`pvc.spec.storageClassName`=nil) gets the most recently created default storage class, regardless of the default status of that storage class, and the administrator receives an alert in the alerts dashboard that there are multiple default storage classes, `MultipleDefaultStorageClasses`.
53
+
54
+
// add xref to multi/no default SC module
55
+
====
38
56
39
-
. Make another storage class the default by setting the `storageclass.kubernetes.io/is-default-class` annotation to `true`:
57
+
. Remove the default storage class setting from the old default storage class.
58
+
+
59
+
For the old default storage class, change the value of the `storageclass.kubernetes.io/is-default-class` annotation to `false` by running the following command:
40
60
+
41
61
[source,terminal]
42
62
----
43
-
$ oc patch storageclass standard -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "true"}}}'
0 commit comments