mirror of
https://github.com/googleforgames/open-match.git
synced 2025-03-29 22:44:20 +00:00
1.1 KiB
1.1 KiB
Create a GKE Cluster
Below are the steps to create a GKE cluster in Google Cloud Platform.
- Create a GCP project via Google Cloud Console.
- Billing must be enabled. If you're a new customer you can get some free credits.
- When you create a project you'll need to set a Project ID, if you forget it you can see it here, https://console.cloud.google.com/iam-admin/settings/project.
- Install Google Cloud SDK which is the command line tool to work against your project.
Here are the next steps using the gcloud tool.
# Login to your Google Account for GCP
gcloud auth login
gcloud config set project $YOUR_GCP_PROJECT_ID
# Enable necessary GCP services
gcloud services enable containerregistry.googleapis.com
gcloud services enable container.googleapis.com
# Test that everything is good, this command should work.
gcloud compute zones list
# Create a GKE Cluster in this project
gcloud container clusters create --machine-type n1-standard-4 open-match-dev-cluster --zone us-west1-a --tags open-match