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.
- 类型
object- 必填
provisioner
规格
.allowedTopologies
- 描述
- 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.
- 类型
array
.allowedTopologies[]
- 描述
- 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.
- 类型
object
.allowedTopologies[].matchLabelExpressions
- 描述
- A list of topology selector requirements by labels.
- 类型
array
.allowedTopologies[].matchLabelExpressions[]
- 描述
- A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.
- 类型
object- 必填
keyvalues
.allowedTopologies[].matchLabelExpressions[].values
- 描述
- An array of string values. One value must match the label to be selected. Each entry in Values is ORed.
- 类型
array
.allowedTopologies[].matchLabelExpressions[].values[]
- 类型
string
.mountOptions
- 描述
- 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.
- 类型
array
.mountOptions[]
- 类型
string
.parameters
- 描述
- parameters holds the parameters for the provisioner that should create volumes of this storage class.
- 类型
object
API 端点
可用的 API 端点如下:
/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 方法
DELETE- 描述
- delete collection of StorageClass
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind StorageClass
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new StorageClass
- 查询参数
- 请求体参数
- HTTP 响应
/kubernetes/{cluster}/apis/storage.k8s.io/v1/storageclasses/{name}
- HTTP 方法
DELETE- 描述
- delete the specified StorageClass
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified StorageClass
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified StorageClass
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified StorageClass
- 查询参数
- 请求体参数
- HTTP 响应