Once you completely provision the Kubernetes Engine success, you can view the output as below:
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07162102/image-38-1024x470.png)
Then, we can connect to the Kubernetes Engine by accessing URL that we can get from the output:
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07162728/image-42-1024x116.png)
Finally, we are able to connect to the Kubernetes Engine as below:
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07162644/image-41-1024x512.png)
Note, we should log in to the project on the GCP before opening the URL Kubernetes Engine
Then, we open cli on GCP to connect the Kubernetes
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07162934/image-43-1024x478.png)
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07163048/image-44-1024x463.png)
Then, we can use the script connect_string that the template output before
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07163254/image-45-1024x131.png)
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07163512/image-46-1024x151.png)
Then, we can get node of the Kubernets kubectl get nodes
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07163607/image-47-1024x217.png)
Windows
Firstly, we can download Google Cloud CLI Package at https://cloud.google.com/sdk/docs/downloads-versioned-archives#installation_instructions
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/08/16095047/image-4.png)
Open up PowerShell's command line.
cd ~\Downloads
mv google-cloud-cli-443.0.0-windows-x86_64.zip ~\
cd ~\
Expand-Archive google-cloud-cli-443.0.0-windows-x86_64.zip .
rm google-cloud-cli-443.0.0-windows-x86_64.zip
cd google-cloud-sdk
.\install.bat
Update gcloud and install kubectl for gcp
gcloud components update
gcloud components install kubectl
After install kubectl we have
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/08/16095703/image-5.png)
Then, we can login to gcp by using the command line gcloud auth login
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/08/16095758/image-6-1024x204.png)
Then, we can use the script connect_string that the template output before
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/08/16095911/image-7-1024x275.png)
Then, we can get node of the Kubernets kubectl get nodes
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/08/16100100/image-8-1024x361.png)
Linux
On the Linux system, we can install the kubernets-cli by using the command line
Firstly, we install gcloud for the system by command line as below
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
sudo apt update
sudo apt-get install google-cloud-sdk
After installing gcloud, we can check version by command line: gcloud --version
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07155754/image-28.png)
Then, we can install the Kebernets by command line sudo apt-get install -y kubectl
After installing the Kubernetes, we can check version by command line: kubectl version --short --client
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07160124/image-29-1024x122.png)
Then, we can install Kubectl authentication by command line sudo apt-get install google-cloud-sdk-gke-gcloud-auth-plugin
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07160408/image-31-1024x136.png)
Then, we can connect gke by login with command line gcloud auth login
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07160644/image-32-1024x197.png)
Then, we can use the link for login the google cloud
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07160859/image-33.png)
Then, we copy the authorization code and then push it to the console
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07161431/image-35-1024x212.png)
Then, we can use the script connect_string that the template output before
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07161544/image-36-1024x69.png)
Finally, we can get node of the Kubernets kubectl get nodes
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/07161739/image-37-1024x152.png)
Note: grant access
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/08/15155949/image.png)
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/08/15160305/image-1.png)
Then, we have
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/08/15160412/image-2-1024x512.png)
So, we can connect to google kubernets engine
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/08/15161046/image-3-1024x405.png)