How to Get your KubeConfig From Rancher

Log inot the frontend and go to your cluster

In the top right is your kuebconfig