You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>**Attention:** Volume Resize is an alpha feature. Make sure you have enabled it in Kubernetes API server using `--feature-gates=ExpandCSIVolumes=true` flag.
4
+
>**Attention:** Volume Resize is only available in the driver version v0.6.0+
5
+
6
+
### Install Driver with alpha resize feature
7
+
8
+
1.[One-time per project] Create GCP service account for the CSI driver and set required roles
9
+
10
+
```
11
+
$ PROJECT=your-project-here # GCP project
12
+
$ GCE_PD_SA_NAME=my-gce-pd-csi-sa # Name of the service account to create
13
+
$ GCE_PD_SA_DIR=/my/safe/credentials/directory # Directory to save the service account key
14
+
$ ./deploy/setup-project.sh
15
+
```
16
+
17
+
2. Deploy driver to Kubernetes Cluster
18
+
19
+
```
20
+
$ GCE_PD_SA_DIR=/my/safe/credentials/directory # Directory to get the service account key
21
+
$ GCE_PD_DRIVER_VERSION=alpha # Driver version to deploy
22
+
$ ./deploy/kubernetes/deploy-driver.sh
23
+
```
24
+
25
+
### Resize Example
26
+
27
+
This example provisions a zonal PD in both single-zone and regional clusters.
28
+
29
+
1. Add resize field to example Zonal Storage Class
30
+
```
31
+
apiVersion: storage.k8s.io/v1
32
+
kind: StorageClass
33
+
metadata:
34
+
name: csi-gce-pd
35
+
provisioner: pd.csi.storage.gke.io
36
+
parameters:
37
+
type: pd-standard
38
+
volumeBindingMode: WaitForFirstConsumer
39
+
allowVolumeExpansion: true
40
+
```
41
+
42
+
2. Create example Zonal Storage Class with resize enabled
0 commit comments