Skip to content

How to import cluster to rancher?

  1. in rancher cluster configuration, select Generic
  2. give it a name.
  3. copy the command needed and run it on a kubectl machine that has access to the cluster
  4. change yaml of deployment/cattle-cluster-agent -n cattle-system
bash
kubectl edit deployment/cattle-cluster-agent -n cattle-system
  • look for an env var named STRICT_VERIFY and change it from "true" to "false"
  • it might need to be changed twice, for reason we don't yet understand. so after changing the first time, verify the change, if the change didn't get applied, do it again.
  1. on cloudflare security rule, make sure the NAT ip of the cluster we want to import is allowed to access cmgmt.truewatch.io