How to use rke to add new clusters to existing rancher k8s HA Cluster

Hi Team,

How is it possible to add new clusters (Additional clusters) using rke to an existing rancher 2.0 environment that was built using rke HA k8s cluster?

Our organization requires that we consolidate multiple k8s clusters under one single rancher environment. We were able to add the new clusters manually. But I was looking at automating the new cluster addition and if rke would be useful to add additional clusters? Please suggest alternatives if any. I am thinking of using kubectl + docker command line, but that will be too complex, I think.

Hi Sarma,

what about

Regards

Thank you. I had to use combination of both CLI and API to automate adding custom clusters.

Can you please provide an outline of the commands you used to automate this.