StorageClass [storage.k8s.io/v1]
- Description
- StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.
- Type
object- Required
provisioner
Specification
.allowedTopologies
- Description
- allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.
- Type
array
.allowedTopologies[]
- Description
- A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.
- Type
object
.allowedTopologies[].matchLabelExpressions
- Description
- A list of topology selector requirements by labels.
- Type
array
.allowedTopologies[].matchLabelExpressions[]
- Description
- A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.
- Type
object- Required
keyvalues
.allowedTopologies[].matchLabelExpressions[].values
- Description
- An array of string values. One value must match the label to be selected. Each entry in Values is ORed.
- Type
array
.allowedTopologies[].matchLabelExpressions[].values[]
- Type
string
.mountOptions
- Description
- mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
- Type
array
.mountOptions[]
- Type
string
.parameters
- Description
- parameters holds the parameters for the provisioner that should create volumes of this storage class.
- Type
object
API Endpoints
The following API endpoints are available:
/kubernetes/{cluster}/apis/storage.k8s.io/v1/storageclassesDELETE: delete collection of StorageClassGET: list objects of kind StorageClassPOST: create a new StorageClass
/kubernetes/{cluster}/apis/storage.k8s.io/v1/storageclasses/{name}DELETE: delete the specified StorageClassGET: read the specified StorageClassPATCH: partially update the specified StorageClassPUT: replace the specified StorageClass
/kubernetes/{cluster}/apis/storage.k8s.io/v1/storageclasses
- HTTP method
DELETE- Description
- delete collection of StorageClass
- HTTP responses
- HTTP method
GET- Description
- list objects of kind StorageClass
- HTTP responses
- HTTP method
POST- Description
- create a new StorageClass
- Query parameters
- Body parameters
- HTTP responses
/kubernetes/{cluster}/apis/storage.k8s.io/v1/storageclasses/{name}
- HTTP method
DELETE- Description
- delete the specified StorageClass
- Query parameters
- HTTP responses
- HTTP method
GET- Description
- read the specified StorageClass
- HTTP responses
- HTTP method
PATCH- Description
- partially update the specified StorageClass
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace the specified StorageClass
- Query parameters
- Body parameters
- HTTP responses