Although you can choose to use the Cloud Console to manage Cloud Run for Anthos, there are some tasks that require the command-line tools.
To install and configure the command-line tools for Cloud Run for Anthos:
gcloudcommand-line tool defaults:
Set your default Google Cloud project:
gcloud config set project PROJECT_ID
Replace PROJECT_ID with the ID of your Cloud project.
Set the target platform:
gcloud config set run/platform gke
Set the location of your cluster:
gcloud config set run/cluster_location ZONE_REGION
Replace ZONE_REGION with the zone or region of your cluster.
If you created and use a new namespace other than the
defaultnamespace, you can set that namespace as the default in
gcloudcommand-line tool so that it's used each time you run a command:
gcloud config set run/namespace NAMESPACE
Replace NAMESPACE with the name of the namespace that you want the
gcloudtool tool to use by default.
gcloud components install alpha
gcloud components install kubectl
Optional: Ensure that all previously installed components are up-to-date:
gcloud components update