27.17.3.5. GCE PersistentDisk (gcePD) 对象定义
gce-pd-storageclass.yaml
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: slow
provisioner: kubernetes.io/gce-pd
parameters:
type: pd-standard
zone: us-central1-a
zones: us-central1-a, us-central1-b, us-east1-b
fsType: ext4
- 1
- 选择
pd-standard或pd-ssd。默认为pd-ssd。 - 2
- GCE 区域。如果没有指定任何区,则通常会在所有 OpenShift Container Platform 集群有节点的活跃区域间轮换选择。zone 和 zones 参数不能同时使用。
- 3
- GCE 区的逗号分隔列表。如果没有指定任何区,则通常会在所有 OpenShift Container Platform 集群有节点的活跃区域间轮换选择。zone 和 zones 参数不能同时使用。
- 4
- 在动态部署卷中创建的文件系统。这个值被复制到动态配置的持久性卷的
fstype字段中,并在第一个挂载卷时创建文件系统。默认值为ext4。