To detach the peer cluster from the observer, delete the related custom resources. Complete the following steps.

  1. Switch to the Kubernetes context of the observer cluster.

  2. List the ThanosPeers custom resources on the cluster.

    kubectl list ThanosPeers
    
  3. Delete the custom resource of the peer cluster you want to detach.

  4. Switch to the Kubernetes context of the peer cluster.

  5. List the ThanosEndpoint custom resources on the cluster.

    kubectl list ThanosEndpoints
    
  6. Delete the custom resource from the peer cluster.