Version 1.7. This version is no longer supported. For information about how to upgrade to version 1.8, see Upgrading Anthos on bare metal in the 1.8 documentation. For more information about supported and unsupported versions, see the Version history page in the latest documentation.
When you request storage with a
PersistentVolumeClaim
(PVC), you can specify a StorageClass. If you do not specify a StorageClass, the
default StorageClass is used if one is configured in the cluster.
Google Distributed Cloud does not configure a default StorageClass. For example,
suppose you create a PVC that does not specify a StorageClass. The volume
controller will fulfill the claim according to the default StorageClass.
Changing the default StorageClass
As a cluster administrator, you might want to change the default storage class.
Then all requests for storage that do not specify a StorageClass will be
fulfilled according to the StorageClass of your choice. This section gives the
steps for changing the default.
Deploy a new storage system
Deploy a new storage system and any software components for integrating the new
storage mechanism with a Kubernetes cluster. For example, you might need to
install a CSI driver
in the cluster.
Mark any existing default StorageClass as non-default
Search your cluster for any existing default StorageClass if one already exists
and mark it as non-default. For details, see
Change the default StorageClass.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["This page details how to set or change the default StorageClass in a Google Distributed Cloud cluster, which is essential for managing storage requests without explicitly specifying a StorageClass."],["Google Distributed Cloud does not come with a pre-configured default StorageClass, meaning that if a PersistentVolumeClaim (PVC) lacks a specified StorageClass, the volume controller will attempt to fulfill the claim according to any default that is manually configured."],["Changing the default StorageClass involves deploying a new storage system, marking any existing default StorageClass as non-default, and then creating a new StorageClass manifest with the `storageclass.kubernetes.io/is-default-class: \"true\"` annotation."],["To implement a new StorageClass, a new storage system must be deployed, which may require additional software like a Container Storage Interface (CSI) driver, and then the administrator must also search and change any existing default StorageClasses."],["After creation of a new StorageClass manifest, the new StorageClass can be deployed to the cluster by saving the manifest as a YAML file, and then using the `kubectl apply` command."]]],[]]