I’d like to automate the process of spinning up Rancher and a Kubernetes cluster via Rancher. I’ve achieved some of this using the Rancher CLI, though I’m not able to do everything that I need.
In older versions of the Rancher CLI sdk, there was a “rancher config” command where you could set the Rancher URL, Access Key and Secret Key (https://rancher.com/docs/rancher/v1.6/en/cli/).
But in Rancher 2.x, there is no “rancher config” command. Thus I’m forced to go to a browser and manually configure the username, password, URL, and API keys.
Is there any way, either through the Rancher 2.x CLI or other command line tools, to configure these properties of my Rancher server?