StorageClass
apiVersion: storage.k8s.io/v1
import "k8s.io/api/storage/v1"
StorageClass
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.
-
apiVersion: storage.k8s.io/v1
-
kind: StorageClass
-
provisioner (string), required
Provisioner indicates the type of the provisioner.
-
allowVolumeExpansion (boolean)
AllowVolumeExpansion shows whether the storage class allow volume expand
-
allowedTopologies ([]TopologySelectorTerm)
Atomic: will be replaced during a merge
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.
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.
-
allowedTopologies.matchLabelExpressions ([]TopologySelectorLabelRequirement)
A list of topology selector requirements by labels.
A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.
-
allowedTopologies.matchLabelExpressions.key (string), required
The label key that the selector applies to.
-
allowedTopologies.matchLabelExpressions.values ([]string), required
An array of string values. One value must match the label to be selected. Each entry in Values is ORed.
-
-
-
mountOptions ([]string)
Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
-
parameters (map[string]string)
Parameters holds the parameters for the provisioner that should create volumes of this storage class.
-
reclaimPolicy (string)
Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
-
volumeBindingMode (string)
VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
StorageClassList
StorageClassList is a collection of storage classes.
-
apiVersion: storage.k8s.io/v1
-
kind: StorageClassList
-
items ([]
Items is the list of StorageClasses
Operations
get
read the specified StorageClass
HTTP Request
GET /apis/storage.k8s.io/v1/storageclasses/{name}
Parameters
Response
200 (
401: Unauthorized GET /apis/storage.k8s.io/v1/storageclasses allowWatchBookmarks (in query): boolean continue (in query): string fieldSelector (in query): string labelSelector (in query): string limit (in query): integer pretty (in query): string resourceVersion (in query): string resourceVersionMatch (in query): string timeoutSeconds (in query): integer watch (in query): boolean 200 (
401: Unauthorized POST /apis/storage.k8s.io/v1/storageclasses dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string pretty (in query): string 200 (
201 (
202 (
401: Unauthorized PUT /apis/storage.k8s.io/v1/storageclasses/{name} name (in path): string, required name of the StorageClass dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string pretty (in query): string 200 (
201 (
401: Unauthorized PATCH /apis/storage.k8s.io/v1/storageclasses/{name} name (in path): string, required name of the StorageClass dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string force (in query): boolean pretty (in query): string 200 (
201 (
401: Unauthorized DELETE /apis/storage.k8s.io/v1/storageclasses/{name} name (in path): string, required name of the StorageClass dryRun (in query): string gracePeriodSeconds (in query): integer pretty (in query): string propagationPolicy (in query): string 200 (
202 (
401: Unauthorized DELETE /apis/storage.k8s.io/v1/storageclasses continue (in query): string dryRun (in query): string fieldSelector (in query): string gracePeriodSeconds (in query): integer labelSelector (in query): string limit (in query): integer pretty (in query): string propagationPolicy (in query): string resourceVersion (in query): string resourceVersionMatch (in query): string timeoutSeconds (in query): integer 200 (
401: Unauthorizedlist
list or watch objects of kind StorageClassHTTP Request
Parameters
Response
create
create a StorageClassHTTP Request
Parameters
Response
update
replace the specified StorageClassHTTP Request
Parameters
Response
patch
partially update the specified StorageClassHTTP Request
Parameters
Response
delete
delete a StorageClassHTTP Request
Parameters
Response
deletecollection
delete collection of StorageClassHTTP Request
Parameters
Response