mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
26 lines
766 B
Plaintext
26 lines
766 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * storage/dynamic-provisioning.adoc
|
|
|
|
:_mod-docs-content-type: REFERENCE
|
|
[id="gce-persistentdisk-storage-class_{context}"]
|
|
= GCE PersistentDisk (gcePD) object definition
|
|
|
|
.gce-pd-storageclass.yaml
|
|
[source,yaml]
|
|
----
|
|
apiVersion: storage.k8s.io/v1
|
|
kind: StorageClass
|
|
metadata:
|
|
name: <storage-class-name> <1>
|
|
provisioner: kubernetes.io/gce-pd
|
|
parameters:
|
|
type: pd-ssd <2>
|
|
replication-type: none
|
|
volumeBindingMode: WaitForFirstConsumer
|
|
allowVolumeExpansion: true
|
|
reclaimPolicy: Delete
|
|
----
|
|
<1> Name of the storage class. The persistent volume claim uses this storage class for provisioning the associated persistent volumes.
|
|
<2> Select `pd-ssd`, `pd-standard`, or `hyperdisk-balanced`. The default is `pd-ssd`.
|