Get startedGet started for free

What Are GKE Fleets?

1. What Are GKE Fleets?

So what are fleets in GKE? And how can they be used to simplify administration and management? Fleets are logical groupings of Kubernetes clusters with consistent configurations and policies. Created within a host project, fleets consist of GKE clusters, Compute Engine VMs, and a selection of fleet-enabled GKE components, spanning across Google Cloud, VPC networks, and projects. GKE clusters and other fleet-enabled components simplify cluster and Service Management by leveraging fleet concepts like namespace and identity sameness. Examples of fleet-enabled components include workload identity pools for GKE clusters. These pools simplify service authentication and authorization within a service mesh and outside the cluster. Multi-cluster gateways ensure low latency and high availability by defining load-balancing endpoints for clusters and services. Cloud Service Mesh is used to monitor and manage a reliable service mesh on Google Cloud, on premises, or on other supported Cloud providers. And Config Controller simplifies configuration management. It deploys, monitors, and enforces declarative policies from a central Git repository. Let's explore the benefits of using fleets to simplify the management of multiple Kubernetes clusters. Fleets ensure all clusters have the same namespaces, services, workload identities, mesh identity, and access. Each fleet-aware resource, like a namespace or service, belongs to only one fleet. This single source of truth eliminates conflicts and simplifies management. Fleets establish a trust domain. Security policies applied at the fleet level automatically extend to all clusters within it. Resources that need to communicate frequently can be placed in the same fleet for optimal performance. Organize services by environment, line of business, or deployment schedule for easier administration. Retain the benefits of multiple clusters while centralizing policy and governance at the fleet level. Before wrapping up, let's explore how to create a fleet and register a new or existing cluster to a fleet. To create a fleet, use the gcloud container fleet create command or the Google Cloud console to create a fleet. After you create a fleet, you can register a new or existing cluster to it. To create and register a new GKE Autopilot cluster, add the enable fleet flag to the gcloud container cluster's create auto command. To create and register a new GKE standard cluster, enable the fleet and Workload Identity Federation. Use the update command with the enable fleet flag to add an existing cluster to the project fleet. To register a cluster to a fleet in a different project, use the enable project flag.

2. Let's practice!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.