Logo

Documentation

Multi-Cluster

Overview

It is often desirable to separate build and production environments; this can be achieved with multiple clusters. Cartographer helps pave a path to production across clusters with ClusterSupplyChains and ClusterDeliveries, leveraging GitOps.

A ClusterSupplyChain can be installed into an isolated build cluster to manage the path from source code to Kubernetes configuration in a Git repository. Meanwhile, a ClusterDelivery can be installed in the production cluster, which will pick up that configuration from the Git repository to be deployed and tested. This allows for the same artifact to be promoted through multiple environments to first test/validate and finally run in production.

Examples

Example PR based flow

  1. Developer commits new source code
  2. ClusterSupplyChain in the build cluster generates Kubernetes configuration and commits it to a git repository (i.e. staging/feature-a)
  3. “Staging environment maintainer” opens a PR and merges staging/feature-a into staging
  4. ClusterDelivery in the staging cluster picks up the merged PR and deploys the Kubernetes configuration to be tested and commits it to a git repository (i.e. production/feature-a)
  5. “Production environment maintainer” opens a PR and merges production/feature-a into production
  6. ClusterDelivery in the production cluster picks up the merged PR and deploys the Kubernetes configuration.

Multi-Cluster

Basic example without PRs