This guide shows how to set up a GKE on-prem cluster with Cloud Run for Anthos on-prem enabled.
Note that installing Cloud Run for Anthos on-prem installs Knative Serving into the cluster to connect and manage your stateless workloads.
Sign in to your Google Account.
If you don't already have one, sign up for a new account.
In the Cloud Console, on the project selector page, select or create a Cloud project.
Make sure that billing is enabled for your Google Cloud project. Learn how to confirm billing is enabled for your project.
To set up the
gcloud command line for Cloud Run for Anthos on-prem:
If you haven't already, install and initialize the Cloud SDK.
Set the platform to
kubernetesand set your default project setting for
gcloudto the one you just created:
gcloud config set run/platform kubernetes gcloud config set project PROJECT-ID
Replace PROJECT_ID with your project ID.
gcloud components update
gcloud components install beta
If you are already using GKE on-prem,
kubectl may already be
kubectl is not installed, you can install it using the command:
gcloud components install kubectl
Installing Cloud Run for Anthos on-prem
You can install Cloud Run while creating a new GKE on-prem
cluster by setting the
cloudrun configuration in the
cloudrun: enabled: true
Setting up the Cloud Console
When using the Cloud Console, login to the cluster.
If you are using a Kubernetes Service Account, be sure to add the
cluster-admin role to the Service Account.