https://rancher.com/ logo
Title
n

nutritious-application-85076

06/27/2022, 10:52 AM
A k8s cluster is created when we stop/start the rancher desktop. Is there a way next to stop/start it again ? To clean up an existing k8s cluster ?
w

wide-mechanic-33041

06/27/2022, 12:06 PM
Something different than the “Reset Kubernetes” action? Just reboot the VM w/o losing all the configs that have been made?
n

nutritious-application-85076

06/27/2022, 12:09 PM
Got it. The screen
kubernetes settings
is more about configuring the k8s version to be used, cpu, memory than resetting an existing cluster. Such actions should become part of the dashboard by the way
w

wide-mechanic-33041

06/27/2022, 12:12 PM
can’t speak for the Rancher team, but i think Dash was more about what was going on in the cluster and the Preferences panel is for maintaining the RD config. I believe Dash is mostly reused code from the other Rancher offerings as well so it can’t be tied to just RD.
n

nutritious-application-85076

06/27/2022, 12:21 PM
So such action buttons could become part of the RD General screen then
f

fast-garage-66093

06/27/2022, 3:36 PM
I don't understand what you are asking for? Rebooting the VM is easily done by stopping and restarting Rancher Desktop? Is that what you want?
n

nutritious-application-85076

06/27/2022, 3:42 PM
Why should I restart the Desktop to restart a k8s cluster ?
From my point of view, the desktop is an environment from where I should be able to configure: • VM (cpu, memory, disks, ...) • Images, Routing (= traefix), Container registry (= missing feature) • Tools (helm, ...) to be used • K8s instances
f

fast-garage-66093

06/27/2022, 4:23 PM
You can disable and re-enable k8s from inside RD. I still don't understand what you are trying to accomplish with "restarting the VM", and why restarting the app is not an obvious way to accomplish that
n

nutritious-application-85076

06/27/2022, 4:26 PM
What I'm interested to do is to have the possibility using the Rancher Desktop UI to manage K8s instances (= create/delete/start/stop)
f

fast-garage-66093

06/27/2022, 4:27 PM
Oh, RD only manages a single cluster. If you want to run multiple clusters, you will need to use something like
kind
or
k3d
.
You can easily does this with RD and the moby runtime.
n

nutritious-application-85076

06/27/2022, 4:34 PM
Good to know. Can we use the Dashboard part of RD to access a cluster created using k3d ?
f

fast-garage-66093

06/27/2022, 4:35 PM
No, it is for now intentionally limited to the cluster managed by RD itself
n

nutritious-application-85076

06/27/2022, 4:37 PM
And to use k3d, a docker server must be launchd on my mac machine as otherwie I will got
k3d cluster list
FATA[0000] runtime failed to list nodes: docker failed to get containers with labels 'map[app:k3d]': failed to list containers: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
f

fast-garage-66093

06/27/2022, 4:42 PM
That's why I said "RD and the moby runtime"
n

nutritious-application-85076

06/27/2022, 4:42 PM
So RD should be also launched in this case ?
f

fast-garage-66093

06/27/2022, 4:42 PM
It does not work with plain containerd, both
kind
and
k3d
use the docker socket API
Yes,
kind
and
k3d
means "kubernetes (or k3s) in docker"
So you need to run RD as well, but you can disable kubernetes if you are not using the builtin cluster
n

nutritious-application-85076

06/27/2022, 4:44 PM
Kudos 😉