rancher desktop

  • open-source application that lets you run a k8s cluster
  • provides container mgmt + k8s on local machine
  • allows devs to build, push, and pull container images
  • run container using containerd or dockerd(moby)
  • uses k3s

things to know

  • There is a .kube folder in home dir containing a config file which rancher configures in order for us to access the k8s cluster run by rancher!
  • rancher lets u setup and run a k8s cluster on your local machine inside a VM!
  • provides you a container runtime with (nerdctl or dockerd) to help you run containers (pull, push and run images on containers)

more stuff:

  • to know about ur current k8s context check
kubectl config current-context
  • if you’re runnning k8s cluster with rancher it should print out rancher-desktop, if not check .kube/config for k8s config
apiVersion: v1
kind: Config
clusters:
  - name: rancher-desktop
    cluster:
      server: https://127.0.0.1:6443
      certificate-authority-data: LS0tLS1CRUdJTiBDRVJUS
      insecure-skip-tls-verify: false
users:
  - name: rancher-desktop
    user:
      client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FU
      client-key-data: LS0tLS1CRUdJTiBFQyBQUklWQVRFIEt
contexts:
  - name: rancher-desktop
    context:
      cluster: rancher-desktop
      name: rancher-desktop
      user: rancher-desktop
preferences: {}
current-context: rancher-desktop
  • this file above contains the rancher-desktop context (configured by rancher) so that kubectl can use this context to talk to the cluster run by rancher desktop!

Note: When running multiple clusters check this file to make sure which cluster is being used by kubectl and we can also change the context to a different cluster!

kubernetes containerd docker vs containerd rancher-desktop vs docker-desktop

202508212225