mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * storage/dynamic-provisioning.adoc
|
|
// * post_installation_configuration/storage-configuration.adoc
|
|
// * microshift_storage/dynamic-provisioning-microshift.adoc
|
|
|
|
|
|
[id="basic-storage-class-definition_{context}"]
|
|
= Basic StorageClass object definition
|
|
|
|
The following resource shows the parameters and default values that you
|
|
use to configure a storage class. This example uses the AWS
|
|
ElasticBlockStore (EBS) object definition.
|
|
|
|
|
|
.Sample `StorageClass` definition
|
|
[source,yaml]
|
|
----
|
|
kind: StorageClass <1>
|
|
apiVersion: storage.k8s.io/v1 <2>
|
|
metadata:
|
|
name: <storage-class-name> <3>
|
|
annotations: <4>
|
|
storageclass.kubernetes.io/is-default-class: 'true'
|
|
...
|
|
provisioner: kubernetes.io/aws-ebs <5>
|
|
parameters: <6>
|
|
type: gp2
|
|
...
|
|
----
|
|
<1> (required) The API object type.
|
|
<2> (required) The current apiVersion.
|
|
<3> (required) The name of the storage class.
|
|
<4> (optional) Annotations for the storage class.
|
|
<5> (required) The type of provisioner associated with this storage class.
|
|
<6> (optional) The parameters required for the specific provisioner, this
|
|
will change from plug-in to plug-in.
|