Rancher HA installation - retrieve api token

I am trying to automate configuration of Rancher 2.0 - an obvious way to do so is to use the Rancher HTTP API - how to store / receive access token which is generated on the Rancher container start, so that my automation scripts are able to run command without any human interaction ?

Rookie mistake.
Appropriate token (which can be used for API operations on Rancher k8s cluster) is stored in cluster kubectl configuration file, created after rke run.
Mystery solved :slight_smile:

1 Like