liveBook · Manning

RepoSync

As explained in Google Anthos in Action

A RepoSync is an Anthos Config Management resource that synchronizes a repository's configuration into a namespace.

RepoSync is an Anthos Config Management resource that defines how configuration is fetched from a namespace repository and synchronized into its namespace. In multiple-repository mode, it holds repository-fetching details such as Git URLs and Secrets instead of storing them in ConfigManagement. section 11.2.2

A central platform team can deploy RepoSync in a namespace, or delegate that responsibility to an application team. The root repository supplies centrally managed and inherited resources, while the namespace repository manages application-specific objects such as Deployments and ConfigMaps. section 8.3.2

Use RepoSync to structure ownership across repositories:

  • Keep cluster-wide and centrally defined namespace configuration in the root repository. section 8.3.2
  • Place application manifests in a namespace repository managed through RepoSync. section 8.3.2
  • Treat root-repository declarations as authoritative when root and namespace repositories conflict; only the root declaration is applied. section 8.3.2

Delegated application configuration

A central team maintains the root repository and defines shared namespace resources. It deploys a RepoSync resource in an application namespace, allowing the application team to manage that namespace's Deployments, ConfigMaps, and related manifests through its namespace repository. section 8.3.2

Figure 8.8 ACM example config with multiple repositories
08-08

Inspect the multiple-repository configuration showing a root repository, inherited namespace configuration, RepoSync resources, and application manifests. section 8.3.2

How Google Anthos in Action covers it

How deep it goes
Explains repository placement, ownership, inheritance, and conflict precedence without detailing RepoSync manifest fields or reconciliation internals.
Examples
Uses a root repository, two namespace repositories, inherited resources, RepoSync resources, and application manifests as its configuration example.
What it assumes
Assumes familiarity with Kubernetes namespaces, configuration repositories, and Anthos Config Management multiple-repository mode.
What you can do after
Operate/configure namespace repository synchronization and assign application configuration ownership within Anthos Config Management.
How it connects
Connects RepoSync with Anthos Config Management, multiple-repository mode, RootSync, namespace repositories, and Kubernetes namespaces.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Google Anthos in Action. The section links point to the parts of the book it draws on.