Google GKE Cluster Storage Initialization Configuration
Platform integration with Google GKE and storage initialization configuration.
TOC
Constraints and Limitations
-
The default file storage type PVC has a minimum capacity of 1T. If the capacity is set to less than 1T during creation, it will automatically expand to 1T.
-
Default file storage has capacity limits. You can request expansion through support tickets.
-
Default file storage creation and deletion operations take considerable time. If it remains in creating status for a long time, please be patient.
Prerequisites
-
When creating clusters, on the Google Cloud Platform Cluster > Features page under the Other section, check Enable Compute Engine Persistent Disk CSI Driver and Enable Filestore CSI Driver options.
-
Enable Cloud Filestore API and Google Kubernetes Engine API on Google Cloud Platform. See Access Filestore instances using the Filestore CSI driver.
-
Adjust regional file storage quotas on Google Cloud Platform. See Resource quotas and limits.
-
If you have created a GKE cluster, import the GKE cluster.
Configuration Steps
-
Go to Platform Management and click Storage Management > Storage Classes in the left navigation.
-
Click the three dots next to the storage class named standard-rwx or standard-rwo > Update Project.
Note: After importing a GKE cluster, default storage classes are generated. standard-rwx is recommended for file storage, and standard-rwo for block storage. See Default Storage Class Description.
-
Select the Project Assignment method as needed and click Update to assign standard-rwx or standard-rwo storage classes to projects.
Note: If the default storage classes don't meet requirements, create new storage classes following the above steps and modify parameters as needed. See Available Storage Class Parameters.
Related Information
Default Storage Class Description
Available Storage Class Parameters
-
For block storage optional parameters and meanings, see Storage options.
-
For file storage optional parameters and meanings, see Service tiers.
Common Issues
File Storage Type Storage Class PVC Creation Failure
-
The following error occurs because Cloud Filestore API is not enabled in the project or lacks appropriate permissions. See Prerequisites to resolve:
-
The following error occurs due to exceeding storage quotas. See Prerequisites to resolve:
Block Storage Type Storage Class PVC Cannot Bind Properly
The following error occurs because the node's CSINode lacks configuration for the pd.csi.storage.gke.io driver. You can resolve this by restarting the Compute Engine Persistent Disk CSI Driver.
Note: Updating this plugin will make the cluster unavailable. The update process takes approximately 5-10 minutes.