// Module included in the following assemblies:
//
// * storage/dynamic-provisioning.adoc

[id="change-default-storage-class_{context}"]
= Changing the default StorageClass

If you are using GCE and AWS, use the following process to change the 
default StorageClass. This process assumes you have two StorageClasses
defined, `gp2` and `standard`, and you want to change the default
StorageClass from `gp2` to `standard`.

. List the StorageClass:
+
----
$ oc get storageclass

NAME                 TYPE
gp2 (default)        kubernetes.io/aws-ebs <1>
standard             kubernetes.io/gce-pd
----
<1> `(default)` denotes the default StorageClass.

. Change the value of the annotation 
`storageclass.kubernetes.io/is-default-class` to `false` for the default 
StorageClass:
+ 
----
$ oc patch storageclass gp2 -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "false"}}}'
----

. Make another StorageClass the default by adding or modifying the 
annotation as `storageclass.kubernetes.io/is-default-class=true`.
+ 
----
$ oc patch storageclass standard -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "true"}}}'
----

. Verify the changes:
+
----
$ oc get storageclass

NAME                 TYPE
gp2                  kubernetes.io/aws-ebs
standard (default)   kubernetes.io/gce-pd
----


// Module included in the following assemblies:
//
// * storage/dynamic-provisioning.adoc

[id="change-default-storage-class_{context}"]
= Changing the default StorageClass

If you are using AWS, use the following process to change the default
StorageClass. This process assumes you have two StorageClasses
defined, `gp2` and `standard`, and you want to change the default
StorageClass from `gp2` to `standard`.

. List the StorageClass:
+
----
$ oc get storageclass

NAME                 TYPE
gp2 (default)        kubernetes.io/aws-ebs <1>
standard             kubernetes.io/aws-ebs
----
<1> `(default)` denotes the default StorageClass.

. Change the value of the annotation 
`storageclass.kubernetes.io/is-default-class` to `false` for the default 
StorageClass:
+ 
----
$ oc patch storageclass gp2 -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "false"}}}'
----

. Make another StorageClass the default by adding or modifying the 
annotation as `storageclass.kubernetes.io/is-default-class=true`.
+ 
----
$ oc patch storageclass standard -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "true"}}}'
----

. Verify the changes:
+
----
$ oc get storageclass

NAME                 TYPE
gp2                  kubernetes.io/aws-ebs
standard (default)   kubernetes.io/aws-ebs
----


Fix bz1729334: remove GCE storage reference
Fix bz1729334: remove GCE storage reference

https://bugzilla.redhat.com/show_bug.cgi?id=1729334
