Note
- This guide is based on Kubernetes v1.30.
Install Tools
gcloud CLI
gcloud CLI
Run the following command to install the gcloud CLI and restart your shell.Install the
gke-gcloud-auth-plugin by running the following command:kubectl
kubectl
Install kubectl according to your OS and architecture.macOSLinux
helm
helm
Set Up Google Cloud Account
Initialize gcloud CLI
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.
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.
Environment Variables
Set the project ID, region, cluster name, and zone where the nodes will be located as environment variables.