Hi Rancher community,
we are trying to automate our Rancher installation und subsequent configuration. I haven’t been able to find any documentation on how to access and use the Rancher 2.0 API (v3) yet. Can you help us with some pointers?
Example:
We want to create a CI job to help us with testing Rancher 2.x installation and Rancher 2.x upgrades. Something like this:
install Rancher 2.x (single node)
add users, namespace and projects
create node template
create cluster
deploy applications and test application
remove cluster
remove Rancher installation
We have only just started using Rancher, so apologies if I have overlooked stuff which has already been documented.
That would be interesting for me, too. Has anyone already gone in that direction?
At least I want to give default password for admin, and automatic setup of the Rancher URL.
I’m doing it (in development at the moment). Check out https://rancher.com/docs/rancher/v2.x/en/quick-start-guide/deployment/digital-ocean-qs/ to get your started. It’s for digitalocean, but should give you a basic idea of the steps to take. The key files are the templates in the /files folder - they do the complex bit of configuring rancher, setting up the agents, etc.
For the rest, I’m using simple kubectl and helm commands.