Google GKE Cluster Storage Initialization
Integration with Google GKE and storage initialization configuration.
Constraints and Limitations
-
The minimum capacity for a Persistent Volume Claim (PVC) of the default file storage type is 1TB. If you specify a capacity less than 1TB when creating, it will be automatically resized to 1TB.
-
Default file storage has capacity limits that can be expanded through a support request.
-
Creating and deleting default file storage takes a longer time. If it stays in the “Creating” state for a long time, please be patient.
Prerequisites
-
When creating a cluster, please check the options Enable Compute Engine Persistent Disk CSI Driver and Enable Filestore CSI Driver under the Clusters > Features section on the Google Cloud Platform.
-
Please enable Cloud Filestore API and Google Kubernetes Engine API on the Google Cloud Platform. Refer to Accessing Filestore instances using the Filestore CSI driver for details.
-
Adjust the regional file storage quota on Google Cloud Platform. Refer to Resource Usage Quotas and Permissions for details.
-
If you have already created a GKE cluster, access the GKE cluster ; if you haven’t created a GKE cluster, create a Google GKE cluster .
Procedures
-
Go to Platform Management, click Storage Management > Storage Class in the left navigation bar.
-
Click the Update Project
button on the right of the storage class named standard-rwx or standard-rwo.Tip: After accessing the GKE cluster, default storage classes are generated as follows. It is recommended to use the standard-rwx storage class for file storage and the standard-rwo storage class for block storage. Refer to Explanation of Default Storage Classes for details.
-
Choose how to Assign Projects as needed, then click Update to assign the standard-rwx or standard-rwo storage class to projects for use.
Tip: If the default storage class does not meet your requirements, you can create a new storage class and modify the relevant parameters as needed, as described in Explanation of Storage Class Parameters .
Related Information
Explanation of Default Storage Classes
| Storage Class Name | Storage Class Type | Description |
|---|---|---|
| (Recommended) standard-rwx | File Storage | Uses Basic HDD Filestore Service Tier . |
| (Recommended) standard-rwo | Block Storage | Uses balanced persistent disk. |
| premium-rwx | File Storage | Uses Basic SSD Filestore Service Tier . |
| premium-rwo | Block Storage | SSD persistent disk. |
| enterprise-rwx | File Storage | Uses Enterprise Filestore Service Tier . |
| enterprise-multishare-rwx | File Storage | Uses Enterprise Filestore Service Tier . Refer to Filestore multiple share for Google Kubernetes Engine . |
Explanation of Storage Class Parameters
-
For optional parameters and their meanings for block storage, refer to Storage options .
-
For optional parameters and their meanings for file storage, refer to Service tiers .