This message was deleted.
# k3d
a
This message was deleted.
w
K3s is a Kubernetes distribution. k3d spins up docker containers running K3s, mostly used for development.
s
does it mean k3d is easier than k3s?
w
Easier to run a cluster on your laptop probably.
It's good for playing around with K3s and learning about some concepts
s
all k8s commands are valid in k3d?
w
Yes, they are valid in K3s, which k3d gives you
s
any tutorial available for k3d?
w
Did you check https://k3d.io yet?
s
I did, but the docs is hard for me
w
s
I just want to learn k8s, through k3d
r
k3d cluster create my-test-cluster
& have kubectl & helm & whatever else you want to test/play with. The above command will create you a single node test cluster. You can always delete it and recreate the cluster with other settings if you need for other testing.
K3d is very light weight and easy to set up and tear down clusters with, however it's command line only. If you're a person who prefers a GUI, Rancher Desktop is a GUI-based tool that sets up a k3s cluster in a VM for you, so it's heavier on resources but also gives you a gui.
b
K3d is k3s in docker containers. You can run many applications inside of containers including k3s itself. K3s is a "distribution" of kubernetes. Kubernetes is a collection of separate programs such as kube-api, etcd, kubelet, kube-config-manager and so on.... K3s packages versions of all these programs.
Is it easier?
Neither k3d is a way to run k3s. It's a lot like upstream 'kind' (kubernetes in docker). But k3s is packaged smaller than upstream so using k3s is better for local development.
If you want to learn kubernetes there are a lot of great resources online to get you started. For example our own rancher academy: https://www.rancher.academy/collections Kubernetes basics is a free course as well