Skip to main content

Uninstall Calico Cloud from a cluster

Whether you've finished with your Calico Cloud Trial or decided to disconnect your cluster from Calico Cloud, we know you want your cluster to remain functional. We highly recommend running a simple script to migrate your cluster to open-source Project Calico.

About the migration script

The script migrates all applicable Calico Cloud components to open-source Project Calico; this includes removal and cleanup of all Calico Cloud components that have no equivalents in Project Calico. Because Project Calico does not have the tier resource, the script will exit if any policies exist in any tier except for the default or allow-tigera tiers. To remove policies from tiers, you have these options:

  • Manually move policies out of tiers prior to running the script
  • Let the script remove ALL Calico policies by specifying the --remove-all-calico-policy flag

To successfully downgrade to an open-source Calico configuration, policies must allow necessary traffic to and from Calico Cloud and open-source Calico namespaces. If you keep policies in the default tier (especially GlobalNetworkPolicies), and you have default deny policies, update or add policies accordingly to allow this necessary traffic.

Before you begin

  • You have kubectl administrator access to the cluster you want to migrate to Calico Open Source.
  • You are accessing the cluster from a Linux-based machine.

Run the migration script

  1. Download the script curl -O

  2. Make the script executable chmod +x

  3. Run the script and read the help to determine if you need to specify any flags ./ --help.

  4. Run the script with any needed flags, for example: ./ --remove-prometheus.

Next steps

Continue using your cluster with open-source Project Calico.