Skip to main content
Note
  • This guide is based on Kubernetes v1.30.

Install Tools

For Windows, it is recommended to install WSL2 and use ale in a Linux environment. Refer to this guide to install WSL2 first.
Run the following command to install the gcloud CLI and restart your shell.
Install the gke-gcloud-auth-plugin by running the following command:
Install kubectl according to your OS and architecture.macOS
Linux

Set Up Google Cloud Account

Initialize gcloud CLI

1

Run the following command to register the Google account, region, and zone.

2

At the prompt, enter the number corresponding to `Sign in with a new Google Account` to log in to your Google account. If you are already logged in, enter the number corresponding to the account you want to use.

3

Google Cloud allocates and uses resources on a per-project basis. Enter the number corresponding to `Create a new project` to create a new project. If you want to use an existing project, enter the number corresponding to that project.

4

At the prompt asking if you want to configure a default Compute Region and Zone, enter `y` and then enter the number corresponding to the region/zone you want to set as default.

If you see the following message, the setup is complete.

Environment Variables

Set the project ID, region, cluster name, and zone where the nodes will be located as environment variables.

gcloud Account and Project

1

Run the following command to log in to your Google account.

A browser will automatically open, displaying the Google account login page.
Once you complete the login process in the browser, you will see a confirmation message in the terminal.
2

Next, set the project by running the following command.