GKE: upgrade Anthos Config Management for GKE cluster

If you are managing GKE clusters using Anthos Config Management (ACM) and need to take advantage of newer features or enhancements in ConfigSync or PolicyController, upgrading these components can be done using the gcloud utility.

# check current version of ACM on GKE clusters
gcloud beta container fleet config-management version

# select membership to upgrade
gcloud container fleet memberships list
membership=<membershipName>

# upgrade ACM
new_version=1.13.1
gcloud beta container fleet config-management upgrade --version=$new_version --membership=$membership --quiet

Wait approximately two minutes for stabilization, and then validate the upgrade.

# wait 2 minutes, recheck version
sleep 120
gcloud beta container fleet config-management version

Logs coming from the restarted root-reconciler can be followed using:

kubectl logs deployment/root-reconciler -n config-management-system -f

 

REFERENCES

google, upgrade Anthos Config Management

google, ACM release notes showing features in new versions