How to change the default storage class type?

Solution Verified - Updated -

Issue

  • How to change Storage class RECLAIMPOLICY type Delete to Retain and VOLUMEBINDINGMODE type WaitForFirstConsumer to Immediate?
  • While editing the reclaimPolicy and volumeBindingMode we get the following errors:
# storageclasses.storage.k8s.io "local-sc" was not valid:
# * reclaimPolicy: Forbidden: updates to reclaimPolicy are forbidden.

# storageclasses.storage.k8s.io "local-sc" was not valid:
# * volumeBindingMode: Invalid value: "WaitForFirstConsumer": field is immutable

Environment

  • Red Hat OpenShift Container Platform
    • 4.#

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content