Migrate your RootSync to manage in the Google Cloud console
Stay organized with collections
Save and categorize content based on your preferences.
This page shows you how to migrate a RootSync that is managed by a fleet membership (formerly Hub)
to a RootSync object managed by Config Sync. This migration lets you manage your RootSync in the
Google Cloud console.
To check if your RootSync is managed by a fleet membership, run kubectl -n config-management-system get RootSyncs root-sync -o jsonpath='{.metadata.annotations}'.
If you see the annotation "configmanagement.gke.io/managed-by-hub": "true", the RootSync is Hub-managed.
To migrate your RootSync, complete the following steps:
Create a gcloud apply spec with all fields in spec.configSync removed
except spec.configSync.enabled. Set the value of spec.configSync.enabled
to true.
The apply spec should look similar to the following example:
To confirm the RootSync is successfully migrated, in the
Google Cloud console, go to the Config Sync packages dashboard. You
should be able to edit the RootSync when you expand the package name.