Deploy KubeSphere on GKE
This guide walks you through the steps of deploying KubeSphere on Google Kubernetes Engine.
A standard Kubernetes cluster in GKE is a prerequisite of installing KubeSphere. Go to the navigation menu and refer to the image below to create a cluster.
In Cluster basics, select a Master version. The static version is used here as an example.
Go to Nodes, select the image type and set the Machine Configuration as below. When you finish, click Create.
Note
- To install KubeSphere 3.2.0 on Kubernetes, your Kubernetes version must be v1.19.x, v1.20.x, v1.21.x, or v1.22.x (experimental).
- 3 nodes are included in this example. You can add more nodes based on your own needs especially in a production environment.
- The machine type e2-medium (2 vCPU, 4GB memory) is for minimal installation. If you want to enable pluggable components or use the cluster for production, please select a machine type with more resources.
For other settings, you can change them as well based on your own needs or use the default value.
When the GKE cluster is ready, you can connect to the cluster with Cloud Shell.
Inspect the logs of installation:
When the installation finishes, you can see the following message:
Now that KubeSphere is installed, you can access the web console of KubeSphere by following the steps below.
In Service details, click Edit and change the type from
NodePort
to . Save the file when you finish.Access the web console of KubeSphere using the endpoint generated by GKE.
Tip
Instead of changing the service type to
LoadBalancer
, you can also access KubeSphere console via (service type set toNodePort
). You may need to open port in firewall rules.Log in to the console with the default account and password (
admin/[[email protected]](https://kubesphere.io/cdn-cgi/l/email-protection)
). In the cluster overview page, you can see the dashboard.