StorageClass storage.k8s.io/v1
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.
Fields
- apiVersion:
storage.k8s.io/v1 - kind:
StorageClass - metadata (ObjectMeta)
-
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- provisioner (string)
-
provisioner indicates the type of the provisioner.
- allowVolumeExpansion (boolean)
-
allowVolumeExpansion shows whether the storage class allow volume expand.
- allowedTopologies ([]TopologySelectorTerm)
-
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.
- mountOptions ([]string)
-
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.
- parameters (map[string]string)
-
parameters holds the parameters for the provisioner that should create volumes of this storage class.
- reclaimPolicy (string)
-
reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. 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.
TopologySelectorTerm
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.
- 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.
- matchLabelExpressions.key (string)
The label key that the selector applies to.
- matchLabelExpressions.values ([]string)
An array of string values. One value must match the label to be selected. Each entry in Values is ORed.
StorageClassList
StorageClassList is a collection of storage classes.
- apiVersion:
storage.k8s.io/v1 - kind:
StorageClassList - metadata (ListMeta)
-
Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- items ([]StorageClass)
-
items is the list of StorageClasses