Enable GKE Enterprise
This page shows you how to enable Google Kubernetes Engine (GKE) Enterprise edition and access enterprise features. GKE Enterprise is an enterprise tier for GKE. To learn more about GKE Enterprise, see GKE editions and the GKE Enterprise technical overview.
To understand the charges that will apply, see GKE pricing.
How do I enable GKE Enterprise?
To use GKE Enterprise features with a given cluster:
- GKE Enterprise must be enabled in the cluster's project.
- The cluster itself must be enrolled in the enterprise tier.
For GKE clusters on Google Cloud, you select whether you want to add and pay for the extra tier of features on a per cluster basis. Once a cluster is enrolled in the GKE Enterprise tier, you are entitled to use all available enterprise features with it.
You can then optionally choose for your cluster to join a fleet to use the full range of GKE Enterprise features. Alternatively, if you are not ready to create a fleet, you can use a subset of standalone enterprise features with the cluster. These include advanced security and compliance insights, Binary Authorization, and richer networking features.
GKE clusters outside Google Cloud are all enterprise-tier clusters and fleet members by default, and cannot change tier. Their fleet host project must have GKE Enterprise enabled. You can learn more about setting up these options in their documentation.
For details of GKE Enterprise features, including features available on Google Cloud without fleet membership, see GKE Enterprise deployment options
Before you begin
The instructions in this page assume that you already have GKE enabled in your chosen Google Cloud project. If not, do the following:
- 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.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Google Kubernetes Engine API.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Google Kubernetes Engine API.
Enable GKE Enterprise from the Google Cloud console
This is our recommended approach for enabling GKE Enterprise in a project. It both enables GKE Enterprise and optionally gets you started with a new fleet if you don't have one already.
To enable GKE Enterprise from the Google Cloud console:
In the Google Kubernetes Engine page in the Google Cloud console, go to Overview.
Click Learn and Enable.
On the Learn about GKE Enterprise page, you can learn more about the platform before enabling GKE Enterprise, including a hypothetical monthly cost scenario for when you enable GKE Enterprise.
(Optional) To explore GKE Enterprise using a 90-day free trial period, select the Start your 90-day free trial checkbox. Note that you will still be charged Compute Engine fees during the free trial period.
Click Enable GKE Enterprisee.
On the next page, you can optionally configure fleet settings for GKE Enterprise, including creating a new fleet if your project doesn't have a fleet already, and registering existing GKE clusters on Google Cloud. To configure a fleet, click Edit Fleet Name or Cluster List.
- By default, if you choose to create a fleet, GKE names the new fleet based on the project name. If you want to edit the name, enter the new name under Fleet name on the Fleet registration page.
- Select the clusters you would like to include in the fleet. Note that just registering an existing cluster to a fleet does not affect the tier of features it can access, with some exceptions. Standard tier clusters must be explicitly enrolled in the enterprise tier, as described in Enroll a cluster on Google Cloud in GKE Enterprise.
- Click Save.
To finalize the upgrade, click Confirm. This final step:
- Enables all required APIs and dependencies.
- If configured, creates your fleet and registers your selected clusters to the fleet.
GKE Enterprise is now enabled in your project. You can optionally follow the provided links to configure features, create more clusters, or configure teams. Otherwise click Close to return to the Overview page.
After you enable Google Kubernetes Engine (GKE) Enterprise edition the Overview page is refreshed, and gives you a "big picture" overview of your fleet. For more information on how to use this page, see Use the fleet overview.
Enable GKE Enterprise from the command line
To enable GKE Enterprise in a project from the command line, enable the Anthos API in your project as follows, specifying your project ID if you haven't set a default project for the Google Cloud CLI. This also automatically enables the Fleet (GKE Hub) API.
gcloud services enable --project=PROJECT_ID \
anthos.googleapis.com
You can also enable this API declaratively for your projects by using Terraform:
To learn more about using Terraform, see Terraform support for GKE.
You may need to enable additional APIs for your project to use enterprise features such as Cloud Service Mesh. For details, see the relevant feature guides.
Enroll a cluster on Google Cloud in GKE Enterprise
With a few exceptions GKE clusters on Google Cloud must be explicitly enrolled in the enterprise tier to use GKE Enterprise features, either at cluster creation or by updating an existing cluster.
While optional, we recommend also registering the cluster to the project's fleet. Adding your cluster to a fleet lets you use the full range of GKE Enterprise features. If you don't choose to register your cluster, you can still use GKE Enterprise but with a more limited set of features.
Enroll a new cluster
If you want to use fleet-enabled features with your new cluster, we recommend registering your cluster to the fleet during cluster creation. Enterprise-tier clusters registered to their fleet during cluster creation are created with your chosen fleet-level default settings for a number of enterprise features, and with recommended logs and metrics already enabled. You can learn more about this in Register a new cluster and Set up fleet-level features.
To enroll a cluster in GKE Enterprise during cluster creation, do the following:
Console
Follow the instructions for creating an Autopilot, Standard regional, or Standard zonal cluster from the Google Cloud console, and select Enterprise tier under Cluster basics. If you select Enterprise tier and the GKE Enterprise API is not enabled in your project, you are prompted to enable the API.
(Optional but recommended) Under Fleet management, register your cluster to the project's fleet.
Specify any additional configuration you require for the cluster and click Create.
gcloud
Follow the instructions for creating an Autopilot, Standard regional, or Standard zonal cluster from the command line, specifying the following flags:
--tier enterprise
: Enrols your cluster in the enterprise tier- (Optional but recommended)
--enable-fleet
: Adds your cluster to its project's fleet
The following snippet shows using these flags when creating an Autopilot cluster:
gcloud container clusters create-auto CLUSTER NAME \
--tier enterprise \
--enable-fleet
Upgrade an existing cluster's tier
To update an existing cluster to use GKE Enterprise:
Console
- Go to the GKE Clusters page. This page shows all your clusters.
- Click Actions next to the cluster in the list that you want to update.
- In the Actions menu, select Change tier.
- In the dialog that displays, select Enterprise tier and click Save changes to confirm the action.
gcloud
Run the following command to upgrade the cluster:
gcloud container clusters update CLUSTER NAME --tier enterprise
Replace CLUSTER NAME with the name of your cluster.
Exceptions to default behavior
In a small number of situations, clusters on Google Cloud are automatically upgraded to GKE Enterprise when they join a fleet. Review this section carefully if you plan to register your clusters to a fleet.
A standard-tier cluster on Google Cloud is automatically upgraded to GKE Enterprise when it joins a fleet if all of the following are true:
- The fleet host project (and cluster project for cross project registrations) has GKE Enterprise enabled.
- The cluster has never been registered to a fleet before.
- The cluster has never had a tier explicitly specified, either at cluster creation or later with a cluster update. This includes:
- Clusters created using the Google Cloud console before the introduction of cluster tiers.
- Clusters created with the Google Cloud CLI without the
--tier
flag. - Clusters created using Terraform without the
desired_tier
field filled in.
Any clusters on Google Cloud that are already using GKE Enterprise are automatically enterprise-tier clusters.
Disable GKE Enterprise
To disable GKE Enterprise for a project or cluster, follow the instructions in Disable GKE Enterprise.