https://rancher.com/ logo
Title
m

miniature-ambulance-98143

05/18/2023, 3:15 PM
I want to understand the definition of
local cluster
. Does it refer to the Rancher installation? In my case we have on-prem bare metal cluster with Rancher + app workloads sharing the same cluster. I cannot connect to the Rancher cluster. I have the kubeconfig YAML downloaded but not sure on where i am connecting - is it Rancher API Server or k8s API server endpoint and also what is the user?
a

ancient-energy-15842

05/18/2023, 8:53 PM
AFAIK, at least in the single docker container deployment the
local
cluster is the one running in the docker container on the Rancher machine, that runs the WebUI and other managment services and operators to know which one are you connecting to, you can look to the URL of the
server
field in the kubeconfig file if ends in
k8s/clusters/local
, thats the local cluster, or the management cluster, if ends in a string like
c-m-XXXXXXXX
its your real cluster, where your workloads run, for example
k8s/clusters/c-m-xzfwzztb
m

miniature-ambulance-98143

05/18/2023, 9:03 PM
Thanks @ancient-energy-15842. Yes i see a
local
cluster and also another cluster called
rancher-web
. Ideally Rancher cluster and the kubernetes cluster (where workloads are deployed) are separate clusters, is that a good practice?
a

ancient-energy-15842

05/18/2023, 10:28 PM
that's usually the way it works by default, the local cluster runs in the VM that runs the docker container and the workload cluster runs in other VMs
m

miniature-ambulance-98143

05/18/2023, 10:30 PM
I see but are the VMs still part of 1 single cluster?
a

ancient-energy-15842

05/18/2023, 10:32 PM
at least with the docker container deployment scheme yes, with Helm I don't know really
m

miniature-ambulance-98143

05/18/2023, 10:33 PM
Okay yes good point you made. We use helm by the way.
a

ancient-energy-15842

05/18/2023, 10:33 PM
oh, then I don't know, sorry
m

miniature-ambulance-98143

05/18/2023, 10:35 PM
no problem