Prepare and test your skills
Prepare and test your skills
GitOps and declarative configuration management stores the desired state of clusters and applications as versioned files and uses automation to make every cluster match that state. In hybrid and multi-cloud environments, Google Kubernetes Engine (GKE) (opens in a new tab) clusters on-premises, at the edge, in Google Cloud, AWS, and Azure are grouped as fleets and kept consistent by Anthos Config Management (opens in a new tab) with Config Sync, the Kubernetes Resource Model, and customization tooling such as Kustomize.
The Kubernetes Resource Model (KRM) is a declarative approach where Kubernetes-style files define the desired state instead of manual commands. Automation reads KRM files and creates or updates infrastructure through the Kubernetes API, so the same file produces the same namespaces, role-based access control (RBAC), and workloads in every environment. This model supports infrastructure as code for project provisioning alongside tools such as Terraform, and Deployment Manager convert can translate Deployment Manager configurations and templates into Terraform and KRM formats to keep configurations portable. Because containers separate applications from host infrastructure and Kubernetes provides the same APIs in cloud and private environments, KRM manifests stay portable across heterogeneous clusters.
Config Sync is the Anthos Config Management component that deploys configuration from a source of truth to registered clusters. A commit to the central repository becomes the declared desired state, and Config Sync propagates that state from the centralized management plane in Google Cloud to each fleet member. Synchronization follows a continuous, ordered loop:
Deployment drift is any difference between live state and declared state, such as a manually edited Deployment, an added namespace, or a changed RBAC binding. Automated reconciliation treats drift as a signal to remediate, so clusters converge back without per-cluster kubectl fixes. Centralized monitoring with Google Cloud Observability, including Cloud Logging and Cloud Monitoring, provides visibility into sync status across cloud and edge.
Exam tip: Config Sync deploys configuration from a source of truth to reach desired state, while Policy Controller checks, audits, and enforces whether clusters comply with security or business rules.
A GKE fleet is a logical grouping that permits management of sets of GKE clusters as a unit with consistent security, configuration, and service management. Fleet membership enables sameness, which means Kubernetes objects with the same name in different clusters are treated as the same thing across namespaces, services, and identity. This normalization lets one declarative package address development, test, and production without renaming objects per cluster. Kustomize-style customization preserves consistency while allowing controlled differences, where a shared base defines common state and small overlays adjust image tags, replica counts, resource requests, or load balancer behavior that varies with compute, networking, storage, or proximity to dependencies. Administrative access flows from operators through the Connect gateway (opens in a new tab), which fetches credentials for multiple clusters with one command and integrates groups and third-party identity providers.
The choice of where a fleet member runs determines which hybrid or multi-cloud construct to use:
| Option | Where clusters run | Management relationship |
|---|---|---|
| GKE hybrid environment | On-premises or edge with Google Distributed Cloud connected, plus Google Cloud | Build cloud-like experiences on-premises and transition applications toward GKE with common runtime and connectivity to Google Cloud |
| GKE Multi-Cloud | AWS and Azure infrastructure managed from Google Cloud | Create and manage GKE clusters in other public clouds with consistent governance, operations, and security posture |
| GKE attached clusters | Any standard, Cloud Native Computing Foundation (CNCF)-compliant Kubernetes installation | Attach existing third-party or production clusters to a fleet to standardize and secure them without recreating them |
Consistent continuous integration and continuous delivery (CI/CD) pipelines ensure the exact same binaries, packages, or containers deploy across computing environments. The blueprint pattern uses layered pipelines where the foundation infrastructure pipeline deploys the application factory, fleet-scope pipeline, and multi-tenant infrastructure pipeline, and the application CI/CD pipeline builds and deploys application components in a controllable, auditable, and repeatable way. When workloads must deploy identically, a CI system such as Tekton implements a deployment pipeline that works across environments. Pipeline stages flow from source code to fleet-wide desired state through Cloud Build (opens in a new tab), Cloud Deploy, and Artifact Registry for managed build, delivery, and artifact storage, while immutable containers signed with Binary Authorization preserve code provenance from test to promotion. Supporting controls harden that flow with private control-plane access and private node pools, Cloud NAT for outbound pod access without direct exposure, Container-Optimized OS and Shielded GKE Nodes, Kubernetes RBAC with Google Groups for GKE, and Workload Identity Federation for GKE.
Secure hybrid delivery pipelines centralize build artifacts, verify their integrity, and deliver them to clusters inside and outside Google Cloud without embedding secrets in delivery artifacts. Artifact Registry (opens in a new tab) centralizes artifacts, Cloud Build (opens in a new tab) produces verifiable builds with provenance, Cloud Deploy (opens in a new tab) promotes releases to GKE, GKE Enterprise, attached clusters, and Cloud Run, and external secret managers inject credentials at runtime.
Artifact Registry is a universal package manager that stores all build artifacts and dependencies in one place for visibility and control of the software supply chain. Centralization exposes direct and transitive dependencies, which matters because risks such as the Log4j vulnerability spread through indirect dependencies. Artifacts are protected with access control, Virtual Private Cloud (VPC) Service Controls perimeters, organizational policies, and other security features. Repository design further reduces supply-chain risk:
Artifact Analysis is the service that proactively detects vulnerabilities in artifacts stored in Artifact Registry. Artifact Analysis provides on-demand or automated scanning for base container images and language packages, generates a software bill of materials (SBOM), and supports uploaded Vulnerability Exploitability eXchange (VEX) statements for images. After the initial scan, Artifact Analysis continuously monitors image metadata for new vulnerabilities, updates metadata, creates new vulnerability occurrences for new notes, and deletes occurrences that are no longer valid. Cloud Build runs builds on Google Cloud infrastructure with granular IAM permissions, VPC Service Controls, and isolated and ephemeral build environments. Cloud Build supports Supply-chain Levels for Software Artifacts (SLSA) Level 3 builds for container images and generates authenticated, non-falsifiable build provenance that includes digests of built images, input source locations, toolchain, build steps, and duration. Binary Authorization then enforces policy at deployment time by attaching configurable signatures, called attestations, and checking them before GKE or Cloud Run admits an image:
Cloud Deploy automates delivery of applications to a series of target environments in a defined sequence, with support for GKE, GKE Enterprise, and Cloud Run. Cloud Deploy provides one-click approvals and rollbacks, enterprise security and audit, built-in delivery metrics, and security insights for deployed applications. For hybrid estates, the same model extends to GKE attached clusters, so external Kubernetes clusters receive releases through the same pipeline, approvals, and audit trail as Google Cloud clusters. Secure hybrid delivery depends on keeping pipeline software, infrastructure, and inputs at the same integrity level as the resources the pipeline manages. That means using trusted sources for Terraform, kubectl, and Docker, verifying authenticity, rebuilding infrastructure regularly, and running pipelines with private ingress or egress and VPC Service Controls. VPC Service Controls restrict the resources and application programming interfaces (APIs) accessible from specific Google Cloud projects, so even compromised code has limited ability to reach other resources and exfiltrate data.
Centralized secret management keeps database credentials, API keys, certificates, and passwords outside deployment artifacts and injects them during multi-cloud deployment phases. Kubernetes Secrets store sensitive data separate from Pods and resemble ConfigMaps, but Kubernetes Secrets are not secure by default without encryption, so hybrid designs use external managers. Secrets for Cloud Deploy applications should be generated, managed, and rotated outside Cloud Deploy, with infrastructure provisioning creating or updating the secret before the application deploys:
| Option | Management model | How workloads access secrets |
|---|---|---|
| Google Cloud Secret Manager (opens in a new tab) | Fully managed, multi-region Google Cloud service for API keys, passwords, and other sensitive data | Application code references secrets with the software development kit (SDK) authenticated by Workload Identity, or mounts them with the Secrets Store Container Storage Interface (CSI) driver; environment variables carry metadata such as secret version or dev, staging, and prod environment |
| HashiCorp Vault | Open source secrets tool with Google Cloud integrations; customer operates the Vault cluster | Workloads access Vault secrets through the API with Workload Identity, inject secrets with Vault Agent containers, and consume them with the Vault CSI Provider; customer is responsible for securing, updating, backing up, and making Vault highly available |
Exam tip: Do not inject application secrets into Cloud Deploy deployment artifacts; generate, manage, and rotate secrets outside Cloud Deploy and reference them from Secret Manager or Vault at runtime.
Multi-cluster rollout orchestration is built around the fleet (opens in a new tab), a logical grouping of Kubernetes clusters and other resources managed together. The fleet is managed by the Fleet service, also known as the Hub service, and it uplevels management and observability from individual clusters to groups of clusters through a single fleet host project. Without fleets, a production-wide change across ten projects with two clusters each must be applied cluster by cluster with repeated context switching.
Fleet management is the set of GKE capabilities for managing clusters, infrastructure, and workloads on Google Cloud and across public cloud and on-premises environments. Organizations adopt multiple clusters to achieve technical and business objectives that a single cluster cannot satisfy. Common drivers include:
Fleet-based management normalizes diverse clusters so operators, workload developers, and security and network engineers can view and change them together. The fleet host project becomes the single place to observe the fleet, while team-based constructs and rollout controls determine how changes propagate from cluster to cluster. Fleet-enabled features abstract away cluster boundaries, such as defining team-owned resources across clusters or automating the same configuration fleet-wide.
Cluster registration is the process of adding a cluster as a fleet member in a chosen fleet host project. GKE clusters on Google Cloud must be explicitly registered through quick registration in the console, the gcloud CLI, Terraform, Config Connector, or during cluster creation, either in their current project or in a different project with extra permissions. Clusters outside Google Cloud install the Connect Agent to establish control plane connectivity to Google Cloud, and the agent can traverse NATs, egress proxies, VPNs, and other interconnects so clusters and API servers do not need public IP addresses.
Registration behavior depends on where the cluster runs:
| Cluster type | Registration mode | Connectivity and control |
|---|---|---|
| GKE on Google Cloud | Explicit registration required | Uses Google Cloud identity directly; supports cross-project fleets with extra permissions |
| Google Distributed Cloud on-premises on VMware and bare metal | Automatic registration at creation from fleet details in configuration file | Uses Connect Agent for control plane connectivity; admin and user clusters must be registered from version 1.13 onward |
| GKE on AWS and Azure via multi-cloud API | Automatic registration at creation with fleet host project in create command | Uses Connect Agent for control plane connectivity across clouds |
Consistent command-line access is provided by the Connect gateway (opens in a new tab), which lets users and service accounts connect with Google Cloud identity and run commands against registered clusters without direct IP connectivity. When third-party identity must be preserved, GKE Identity Service brings existing OpenID Connect (OIDC) providers such as Okta and Microsoft AD FS to Anthos environments, with preview LDAP support in some environments. The gateway therefore depends on fleet membership, while the agent depends on outbound connectivity through existing hybrid links rather than inbound exposure.
Sequenced rollouts control the order in which changes such as cluster upgrades propagate across fleet members instead of updating every cluster at once. Team scopes are the enterprise fleet-level construct for associating subsets of fleet clusters with specific application teams, and they enable team-based access control, team-scoped observability, and sequencing of upgrade rollouts. By binding a rollout sequence to team scopes, an operator can move a new version through non-production, then limited production scopes, then broad production, which limits blast radius and creates checkpoints for validation and rollback. GKE clusters on Google Cloud also support lightweight memberships, which register the cluster without enabling all fleet-level configurations while still permitting fleet-based rollout sequencing for upgrades. Lightweight memberships prevent clusters from using:
Exam tip: A lightweight fleet membership still supports sequenced upgrade rollouts but does not support fleet-level features, default logs, default metrics, or Fleet Workload Identity Federation.
Global traffic routing for hybrid deployments controls how requests enter Google Cloud and reach select APIs on-premises or in another cloud without exposing entire private networks. The gated egress pattern exposes only chosen APIs through an API gateway, proxy, load balancer facade, or Private Service Connect endpoint placed in an isolated perimeter segment. Traffic to private APIs is initiated only from within the Google Cloud environment, systems in the private environment cannot be reached directly from Google Cloud, and communication from the private environment to Google Cloud workloads is not allowed. Traffic flows from the Google Cloud VPC to the remote gateway through an ordered path:
Within clusters, pod-to-pod traffic is open by default and must be explicitly restricted to prevent lateral movement and denial of service. Cloud Service Mesh (opens in a new tab) or Istio provides load balancing, service authorization, throttling, quota, and metrics, while Kubernetes network policies provide basic access control. Failure independence reinforces rollout and routing because Compute Engine (opens in a new tab) zonal resources such as instances and zonal persistent disks can only be used in the same zone, regional resources such as static external IP addresses can be used anywhere in the region, and spreading resources across zones and regions isolates physical and software-service failures.
Config Sync deploys configuration from a source of truth to reach desired state, while Policy Controller checks, audits, and enforces whether clusters comply with security or business rules. Config Sync pulls declared manifests to each fleet member and reapplies them to correct drift, whereas Policy Controller evaluates compliance rather than performing that deployment synchronization.
Config Sync pulls declared Kubernetes Resource Model (KRM) manifests from a versioned source of truth to each fleet member and applies them through each cluster Kubernetes API server. It follows a continuous declare, distribute, apply, and reconcile loop that compares live cluster state to desired state and reapplies configuration to correct drift such as manually edited Deployments, added namespaces, or changed role-based access control (RBAC) bindings.
A Google Kubernetes Engine (GKE) hybrid environment runs clusters on-premises or at the edge with Google Distributed Cloud connected plus Google Cloud, GKE Multi-Cloud creates and manages GKE clusters on Amazon Web Services and Azure infrastructure from Google Cloud, and GKE attached clusters attach existing standard Cloud Native Computing Foundation (CNCF)-compliant Kubernetes installations to a fleet without recreating them. The hybrid option builds cloud-like experiences on-premises with common runtime and connectivity to Google Cloud, the multi-cloud option provides consistent governance, operations, and security posture in other public clouds, and attached clusters standardize and secure third-party or production clusters.
Secrets for Cloud Deploy applications must be generated, managed, and rotated outside Cloud Deploy and referenced at runtime rather than injected into deployment artifacts. Workloads access them from Google Cloud Secret Manager with Workload Identity authentication or the Secrets Store Container Storage Interface driver, or from HashiCorp Vault through the API with Workload Identity, Vault Agent containers, or the Vault Container Storage Interface Provider.
Your enterprise operates a hybrid and multi-cloud infrastructure consisting of multiple Google Kubernetes Engine (GKE) clusters managed under a centralized fleet. You are implementing a GitOps continuous delivery workflow using Config Sync and Kustomize to continuously enforce declarative cluster configurations, network policies, and security baselines across all environments.
Your security team has established the following operational requirements:
Which configuration strategy should you implement?
Last updated