Install K3s on Ubuntu 22.04 using K3D and Docker – Learning Kubernetes
Spinning up a Kubernetes cluster for learning, labbing, PoCs, and development should not be difficult. Using just a few simple tools, we can spin up a fully functional Kubernetes cluster running on a single Ubuntu virtual machine using a lightweight Kubernetes distribution called K3s from Rancher. A commandline utility called K3D can be used to spin up K3s inside Docker containers. We can then spin up a real-world workload such as Portainer to run on top of the newly formed Kubernernetes cluster.
Subscribe to the channel:
My blog:
_____________________________________________________
Social Media:
LinkedIn:
Github:
Introduction – 0:00
Overview of installation environment with Ubuntu 22.04 LTS – 0:40
Checking Docker version – 1:00
Downloading and installing kubectl – 1:10
Installing the K3D utility – 1:20
Creating a test cluster using K3D – 1:49
Stepping through the K3D cluster creation command – 2:00
K3D spins up the Kubernetes cluster using K3s – 3:12
Using kubectl to interact with the Kubernetes cluster – 3:30
Talking through installing Portainer in the K3s cluster – 4:14
Running the command to install Portainer in the cluster – 4:35
Browsing to the NodePort to test the Portainer installation – 4:50
Concluding thoughts around K3s K3D and learning Kubernetes – 5:10
If you would like to see this post in blog format, check out the written step-by-step instructions to install K3s on Ubuntu with K3D in Docker here:
–
[ad_2]
source