1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/dynamic-provisioning-gce-definition.adoc
Max Bridges b5fc467d1f add content types to untagged modules
OSDOCS-16694
2025-10-31 21:02:28 -04:00

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`.