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.
Before you start...
Ensure that you have kubectl
access to your Kubernetes cluster you wish to disconnect from Calico Cloud.
Disconnecting from Calico Cloud with a Rancher/RKE cluster currently has a bug, so this script is not expected to work. For Rancher/RKE clusters you should plan to recreate your cluster instead of disconnecting it.
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
Run the migration script
Download the script
curl -O https://installer.calicocloud.io/manifests/v3.16.1-0/downgrade.sh
.Make the script executable
chmod +x downgrade.sh
.Run the script and read the help to determine if you need to specify any flags
./downgrade.sh --help
.Run the script with any needed flags, for example:
./downgrade.sh --remove-prometheus
.
Next steps
Continue using your cluster with open-source Project Calico.