This project contains easy-to-follow examples for managing multiple Google Kubernetes Engine (GKE) clusters via GKE fleets.
Contents
-
fleet-and-teams-setup: Contains a Terraform configuration for provisioning a fleet encompassing three clusters and two teams. This serves as a straightforward Terraform implementation of fleet team management.
-
config-management/configs: A repository demonstrating the use of Anthos Config Management to sync configurations to team namespaces in clusters across the fleet established in the "fleet-and-teams-setup" directory.
-
fleet-and-argocd: Contains an example using Argo CD to deploy applications to Fleet team namespaces.
-
The fleet has three application clusters on GKE, one app operator team
frontend
with awebserver
namespace. -
Platform admin intalls an
argocd-fleet-syncer
in the Argo CD central cluster. This tool will poll your fleet clusters and teams' tenancy topoloy, and creates Argo CD cluster secrets labeled with the teams. -
Platform admins deploys a
webserver-applicationset
in the Argo CD central cluster. The ApplicationSet specifies a Git repo path as the source of the CD pipeline, and Fleet teamfrontend
'swebserver
namespace as the destination. Then the CD pipeline is ready! -
The
frontend
app operator team can now create deployments and configurations in the source Git repo path. They will be automatically synced into thewebserver
Fleet namespace.
-