Set StorageClass as default one in OpenShift/Kubernetes

You can define a default storage class by setting the annotation storageclass.kubernetes.io/is-default-class to true in the storage class definition.

According to the specification, any other value or absence of the annotation is interpreted as false.

To set StorageClass as default in OpenShift use:

oc annotate storageclass standard --overwrite "storageclass.kubernetes.io/is-default-class=true"
In Kubernetes is would look like this:
kubectl patch storageclass standard -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
You can use one of them (annotate or patch) - which you prefer.

Use the following to check:
oc get storageclass
kubectl get storageclass
you will see (default) near the NAME for that one that was marked as default