I'm trying to find a way to get the kubeconfig file using curl
command and hit the rancher API. Is there an API endpoint to get that ?
I tried calling these following endpoints but no luck.
https://clusters.bazzinga.com/v3/clusters/c-abcde?action=importYaml
https://clusters.bazzinga.com/v3/clusters/c-abcde?action=generateKubeconfig