Home

Awesome

Google Compute Engine Persistent Disk CSI Driver

WARNING: Manual deployment of this driver to your GKE cluster is not recommended. Instead users should use GKE to automatically deploy and manage the GCE PD CSI Driver (see GKE Docs).

DISCLAIMER: Manual deployment of the driver to your cluster is not officially supported by Google.

The Google Compute Engine Persistent Disk CSI Driver is a CSI Specification compliant driver used by Container Orchestrators to manage the lifecycle of Google Compute Engine Persistent Disks.

Project Status

Status: GA Latest stable image: registry.k8s.io/cloud-provider-gcp/gcp-compute-persistent-disk-csi-driver:v1.15.0

Test Status

Kubernetes Integration

Driver VersionKubernetes VersionTest Status
HEAD LatestHEAD<img alt="Test Status" src="https://testgrid.k8s.io/q/summary/provider-gcp-compute-persistent-disk-csi-driver/Kubernetes%20Master%20Driver%20Latest/tests_status" />
HEAD stable-masterHEAD (Migration ON)<img alt="Test Status" src="https://testgrid.k8s.io/q/summary/provider-gcp-compute-persistent-disk-csi-driver/Kubernetes%20Master%20Driver%20Latest%20Release%20Candidate/tests_status" />

CSI Compatibility

This plugin is compatible with CSI versions v1.2.0, v1.1.0, and v1.0.0

Kubernetes Version Recommendations

The latest stable of this driver is recommended for the latest stable Kubernetes version. For previous Kubernetes versions, we recommend the following driver versions.

Kubernetes VersionPD CSI Driver Version
HEADv1.13.x
1.29v1.12.x
1.28v1.12.x
1.27v1.10.x

The manifest bundle which captures all the driver components (driver pod which includes the containers csi-provisioner, csi-resizer, csi-snapshotter, gce-pd-driver, csi-driver-registrar; csi driver object, rbacs, pod security policies etc) for the lastest stable release can be picked up from the master branch overlays directory.

Known Issues

See Github Issues

Plugin Features

CreateVolume Parameters

ParameterValuesDefaultDescription
typeAny PD type (see GCP documentation), eg pd-ssd pd-balancedpd-standardType allows you to choose between standard Persistent Disks or Solid State Drive Persistent Disks
replication-typenone OR regional-pdnoneReplication type allows you to choose between Zonal Persistent Disks or Regional Persistent Disks
disk-encryption-kms-keyFully qualified resource identifier for the key to use to encrypt new disks.Empty string.Encrypt disk using Customer Managed Encryption Key (CMEK). See GKE Docs for details.
labelskey1=value1,key2=value2Labels allow you to assign custom GCE Disk labels.
provisioned-iops-on-createstring (int64 format). Values typically between 10,000 and 120,000Indicates how many IOPS to provision for the disk. See the Extreme persistent disk documentation for details, including valid ranges for IOPS.
provisioned-throughput-on-createstring (int64 format). Values typically between 1 and 7,124 mb per secondIndicates how much throughput to provision for the disk. See the hyperdisk documentation for details, including valid ranges for throughput.
resource-tags<parent_id1>/<tag_key1>/<tag_value1>,<parent_id2>/<tag_key2>/<tag_value2>Resource tags allow you to attach user-defined tags to each Compute Disk, Image and Snapshot. See Tags overview, Creating and managing tags.

Topology

This driver supports only one topology key: topology.gke.io/zone that represents availability by zone (e.g. us-central1-c, etc.).

CSI Windows Support

GCE PD driver starts to support CSI Windows with [CSI Proxy] (https://github.com/kubernetes-csi/csi-proxy). It requires csi-proxy.exe to be installed on every Windows node. Please see more details in CSI Windows page (docs/kubernetes/user-guides/windows.md)

Features in Development

FeatureStageMin Kubernetes Master VersionMin Kubernetes Nodes VersionMin Driver VersionDeployment Overlay
SnapshotsGA1.17Anyv1.0.0stable-1-21, stable-1-22, stable-1-23, stable-master
ClonesGA1.18Anyv1.4.0stable-1-21, stable-1-22, stable-1-23, stable-master
Resize (Expand)Beta1.161.16v0.7.0stable-1-21, stable-1-22, stable-1-23, stable-master
Windows*GA1.191.19v1.1.0stable-1-21, stable-1-22, stable-1-23, stable-master

* For Windows, it is recommended to use this driver with CSI proxy v0.2.2+. The master version of driver requires disk v1beta2 group, which is only available in CSI proxy v0.2.2+

Future Features

See Github Issues

Driver Deployment

As part of the deployment process, the driver is deployed in a newly created namespace by default. The namespace will be deleted as part of the cleanup process.

Controller-level and node-level deployments will both have priorityClassName set, and the corresponding priority value is close to the maximum possible for user-created PriorityClasses.

Further Documentation

Local Development

For releasing new versions of this driver, googlers should consult go/pdcsi-oss-release-process.

Kubernetes

User Guides

Driver Development