Home / Platform management / Clusters / Clusters / Create Public Cloud Cluster / Create Google GKE Cluster

Create Google GKE Cluster

GKE is a managed Kubernetes open-source container orchestration platform by Google. For more information about Google GKE clusters, please refer to the official documentation .

By using this guide, you can quickly launch a Kubernetes cluster in your Google account.

Preparation

Install a plugin

Before installation, you need to install the Google GKE Cluster Management Components with one click on the global plugin tab.

Create ServiceAccount Token

Create a service account using Google Kubernetes Engine. GKE will use this account to operate your cluster. Creating this account will also generate a private key for authentication.

  1. Please refer to the official documentation Google Docs: Creating and Enabling ServiceAccounts to create a ServiceAccount and add the following roles:

    • Compute Network Admin: roles/compute.networkAdmin

    • Compute Viewer: roles/compute.viewer

    • Kubernetes Engine Admin: roles/container.admin

    • Workload Identity User: roles/iam.workloadIdentityUser

    • Service Account User: roles/iam.serviceAccountUse

  2. You need to save the created private key in JSON format. For more information on obtaining the private key for a ServiceAccount, please refer to the official documentation .

  3. Use the JSON file obtained in the above steps to create cloud credentials on this platform.

Create Google Project ID

Your cluster needs to be added to the Google project. Please follow the steps below to add the cluster to the project ID.

Refer to Google Cloud Documentation to create a new project.

Create Cluster - Basic Info

  1. In the left navigation pane, click Clusters > Cluster of clusters.

  2. Click on Create a cluster on the right side of the page > Create Google GKE Cluster.

Parameter Description
Cloud Credential Select an existing cloud credential or create a cloud credential and use it.

Create Cluster - GKE Cluster Settings

Cluster Settings

Parameter Description
Region The platform only supports creating clusters within one availability zone in a region.

Add Node Pool

A node pool is a collection of nodes, such as high-performance and on-demand billing node pools. You can add various types of nodes to meet the requirements of different application scenarios.

  1. Add one or more node pools.

    Parameter Description
    Initial Node Count The integer quantity of initial nodes in the node pool.
    Auto Scaling With the Autopilot cluster of GKE, you don’t need to worry about provisioning nodes or node pools, as the node pool can be automatically provisioned by nodes and automatically scaled to meet the workload requirements. If enabled, the platform defaults to Balanced for Location Strategy and Per-Availability Zone Limit for Size Limit Type. You also need to configure the Node Count Range to set the upper and lower limits for the automatically scaled cluster quantity. For more information, please refer to the official documentation for detailed scaling strategies.
    Kubernetes Labels Labels are key-value pairs attached to nodes that define the attributes of the nodes.
    Taints Taints are attributes of nodes that allow nodes to reject running certain Pods or even evict Pods.
  2. Click Create to view the progress of cluster creation.

Relevant operations

You can click the on the right side of the cluster on the list page or click Actions in the upper right corner on the details page to update the resource configuration of the nodes under the cluster or delete the cluster that is no longer in use as needed.

Operation Description
Update Update the created cluster configuration in Update public cloud cluster configuration, and the updated configuration will take effect in GKE at the same time.
Delete When deleting a cluster, the resources in the GKE nodes will be released at the same time. Please make sure to backup or migrate the applications in the project that is bound to the cluster before deleting it.

What’s next

Cluster Storage Initialization - Enable File Storage Driver

When creating a GKE cluster, block storage is used by default. If you need to use file storage, you can enable the Filestore CSI driver on an existing GKE cluster. Please refer to the official documentation for more information.