https://rancher.com/ logo
Title
b

billowy-minister-95880

01/11/2023, 9:43 AM
Hello, I'm a new Rancher user. I'm looking for a way to use it for local development. For now, Rancher use my aks config which I have exported. How can I use rancher desktop for local development on Mac?
l

limited-pizza-33551

01/11/2023, 10:40 AM
Hey Filip, welcome! Firstly, would you please clarify what you mean by local development? Secondly, are you already using another tool for this purpose and are looking to migrate away?
👍 1
w

wide-mechanic-33041

01/11/2023, 1:21 PM
and likely you just need to switch your contexts using kubectl config use-context rancher-desktop
1
b

billowy-minister-95880

01/11/2023, 2:58 PM
Hi, By local development I mean cluster created localy on my pc
which run on my macbook
w

wide-mechanic-33041

01/11/2023, 3:46 PM
yup RD can create a local cluster if you enable that feature. Just use context calls to jump between your external K8s clusters and the local one.
b

billowy-minister-95880

01/11/2023, 7:14 PM
how this can be done?
w

wide-mechanic-33041

01/11/2023, 7:32 PM
just set the flag to enable and RD will start the embedded cluster
and since you have a couple clusters in your .kubeconfig just run the
kubectl config use-context
calls to switch
b

billowy-minister-95880

01/12/2023, 8:26 AM
I did but kubectl still show just one context (my aks cluster) when using : kubectl get-contexts