Unable to remove destination cluster

Symptoms

When trying to remove an offline geo-replication destination cluster, the following error message is displayed in the UI:

Failed to retrieve data for this destination cluster.

Causes

There could be several reasons, for example, the cluster might be offline, or the service ID of the cluster might have been revoked.

Resolving the problem

  1. Go to your origin cluster. Log in to your Kubernetes cluster as a cluster administrator by setting your kubectl context.
  2. Initialize the Event Streams CLI by following the instructions in logging in.
  3. Retrieve destination cluster IDs by using the following command:

    kubectl es geo-clusters
    

    Look for the destination cluster ID that you want to remove.

  4. Run the following command:

    kubectl es geo-cluster-remove --destination <destination-cluster-id> --force