Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Roles required to select or create a project
Select a project: Selecting a project doesn't require a specific
IAM role—you can select any project that you've been
granted a role on.
Create a project: To create a project, you need the Project Creator
(roles/resourcemanager.projectCreator), which contains the
resourcemanager.projects.create permission. Learn how to grant
roles.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Roles required to select or create a project
Select a project: Selecting a project doesn't require a specific
IAM role—you can select any project that you've been
granted a role on.
Create a project: To create a project, you need the Project Creator
(roles/resourcemanager.projectCreator), which contains the
resourcemanager.projects.create permission. Learn how to grant
roles.
Set the default Google Cloud project that is used by the Google Cloud CLI
to the Google Cloud project that you just created:
gcloudconfigsetprojectPROJECT-ID
Replace PROJECT_ID with the ID of your Google Cloud project.
Install the kubectl command-line tool:
gcloudcomponentsinstallkubectl
Update installed gcloud CLI components:
gcloudcomponentsupdate
Installing Knative serving on VMware
You can install Knative serving while creating new
Google Distributed Cloud by setting the cloudrun
configuration in the
config.yaml
file:
cloudrun:
enabled:true
Setting up the Google Cloud console
When using the Google Cloud console,
login to the cluster.
If you are using a Kubernetes Service Account, be sure to add the
cluster-admin role to that Service Account.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[[["\u003cp\u003eThis guide outlines the process of setting up Google Distributed Cloud with Knative serving enabled for managing stateless workloads.\u003c/p\u003e\n"],["\u003cp\u003eInstalling Knative serving on VMware involves enabling the \u003ccode\u003ecloudrun\u003c/code\u003e configuration in the \u003ccode\u003econfig.yaml\u003c/code\u003e file during Google Distributed Cloud creation.\u003c/p\u003e\n"],["\u003cp\u003eSetting up the command-line environment requires installing and initializing the Google Cloud CLI, setting the default project, and installing/updating the \u003ccode\u003ekubectl\u003c/code\u003e tool.\u003c/p\u003e\n"],["\u003cp\u003eWhen using the Google Cloud console, you must log in to the cluster, and if a Kubernetes Service Account is used, it must be assigned the \u003ccode\u003ecluster-admin\u003c/code\u003e role.\u003c/p\u003e\n"]]],[],null,["# Setting up Knative serving on VMware\n\nThis guide shows you how to set up\n[Google Distributed Cloud](/gke-on-prem) with\nKnative serving enabled.\n\nNote that installing Knative serving on VMware installs\n[Knative Serving](/knative) into the cluster to connect and manage your\nstateless workloads.\n\nBefore you begin\n----------------\n\n1. This task assumes that you have active Google Distributed Cloud. [Learn how to create\n Google Distributed Cloud](/anthos/clusters/docs/on-prem/overview).\n\n\n For information about GKE Enterprise, see\n [GKE Enterprise Pricing](/anthos/pricing).\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n### Setting up the command-line environment\n\nSet up the gcloud CLI and `kubectl` for Knative serving on VMware:\n\n1. [Install and initialize the Google Cloud CLI](/sdk/docs).\n\n2. Set the default Google Cloud project that is used by the Google Cloud CLI\n to the Google Cloud project that you just created:\n\n ```bash\n gcloud config set project PROJECT-ID\n ```\n\n Replace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with the ID of your Google Cloud project.\n3. Install the `kubectl` command-line tool:\n\n ```bash\n gcloud components install kubectl\n ```\n4. Update installed gcloud CLI components:\n\n ```bash\n gcloud components update\n ```\n\nInstalling Knative serving on VMware\n------------------------------------\n\nYou can install Knative serving while creating new\nGoogle Distributed Cloud by setting the `cloudrun`\nconfiguration in the\n[`config.yaml`](/anthos/gke/docs/on-prem/how-to/user-cluster-configuration-file#cloudrun-enabled-field)\nfile: \n\n```bash\ncloudrun:\n enabled: true\n```\n\nSetting up the Google Cloud console\n-----------------------------------\n\nWhen using the Google Cloud console,\n[login to the cluster](/anthos/multicluster-management/console/logging-in).\nIf you are using a Kubernetes Service Account, be sure to add the\n`cluster-admin` role to that Service Account.\n\nWhat's next\n-----------\n\n- [Knative serving on VMware Quickstart](/anthos/run/archive/docs/quickstarts/prebuilt-deploy-on-vmware)\n- [Deploying a container on Google Distributed Cloud](/anthos/run/archive/docs/deploying)\n- [Building containers](/anthos/run/archive/docs/building/containers)\n- [Troubleshooting](/anthos/run/archive/docs/troubleshooting)"]]