Contents [hide]
Introduction K3s
K3s is a minimal distribution of Kubernetes.
You can install K3s on:
- WSL 2
- Hyper-V or VirtualBox virtual machines.
You should pick the WSL 2 installation method if your computer supports it.
Using K3s with WSL 2
Now install K3s from this Github repository.
Open the WSL 2 shell and execute the following commands:

Dowload k3s from github

Run command
chmod +x k3s
sudo ./k3s server
If your computer doesn’t support WSL 2, you can try MultiPass.
Using K3s with MultiPass
MultiPass is a tool that creates and manages virtual machines that are based on Ubuntu.
You can download MultiPass with Chocolatey with:



You can download MultiPass with Chocolatey with:
Once downloaded, run the executable file and choose installation options.
During the installation, you’ll be asked if you want to use Hyper-V or VirtualBox.
If you have Hyper-V, go for it.
Otherwise, stick to VirtualBox.
To launch a node with Multipass, open PowerShell and execute:
multipass launch -n node1

Here you created a node with default configurations of 1GB RAM and one CPU named node1
.
To verify if the node exists, you can execute:

Encountering an error because of VirtualBox or Hyper-V
Although Hyper-V is recommended, there’s a chance it just might not work on your system.
In that case, you should try changing your hypervisor.
To change to Hyper-V, type: multipass set local.driver=hyperv
To change to VirtualBox, type: multipass set local.driver=virtualbox
When you perform either change, be sure to reboot your system.
Having a public network enabled
MultiPass can give errors on a public network.
Type the following command to get information on your network:
Get-NetConnectionProfile
The NetworkCategory variable will tell you if your network is set to public or private.
The output will also give you an InterfaceIndex variable.
You’ll have that to change the network category to Private.
To change your network profile, execute:
Installing K3s on the node
After a little wait you should be able to see your cluster in action with:
Congratulations, you installed K3s!
Good Luck to you
Phương Nguyễn