|
|
@@ -71,3 +71,40 @@ ALTER SEQUENCE tablename_id_seq RESTART WITH nn;
|
|
|
|
|
|
esto se hace cuando restauro un volcado de la bd sobre una instalación nueva. Si hay índices ya creados, hay que reinciar a partir del último.
|
|
|
|
|
|
+
|
|
|
+## Changing the default storage class
|
|
|
+
|
|
|
+
|
|
|
+Use the following process to change the default storage class. For example you have two defined storage classes, gp2 and standard, and you want to change the default storage class from gp2 to standard.
|
|
|
+
|
|
|
+List the storage class:
|
|
|
+
|
|
|
+ oc get storageclass
|
|
|
+
|
|
|
+Example output
|
|
|
+
|
|
|
+ NAME TYPE
|
|
|
+ gp2 (default) kubernetes.io/aws-ebs 1
|
|
|
+ standard kubernetes.io/aws-ebs
|
|
|
+
|
|
|
+1. (default) denotes the default storage class.
|
|
|
+
|
|
|
+Change the value of the ```storageclass.kubernetes.io/is-default-class``` annotation to **false** for the default storage class:
|
|
|
+
|
|
|
+ oc patch storageclass gp2 -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "false"}}}'
|
|
|
+
|
|
|
+
|
|
|
+Make another storage class the default by setting the ```storageclass.kubernetes.io/is-default-class``` annotation to **true**:
|
|
|
+
|
|
|
+ oc patch storageclass standard -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "true"}}}'
|
|
|
+
|
|
|
+
|
|
|
+Verify the changes:
|
|
|
+
|
|
|
+ oc get storageclass
|
|
|
+
|
|
|
+Example output
|
|
|
+
|
|
|
+ NAME TYPE
|
|
|
+ gp2 kubernetes.io/aws-ebs
|
|
|
+ standard (default) kubernetes.io/aws-ebs
|