Set up a Kubernetes HA Cluster at Home is easy with K3s! In this video I show you what you need to do that and how I’ve used K3s to set up a High Available Kubernetes Cluster in my Home Lab on Proxmox. We also cover an awesome free and open-source tool called Datree, and how to use it to check Kubernetes Deployments for misconfigurations and HA capability.
Learn Kubernetes: https://www.youtube.com/watch?v=glFE28QT1HI&list=PLj-2elZxVPZ8U5_gxuF_GFWelIo9kFlAj
Sophos XGS Setup: https://youtu.be/obTDL4gGBe0
Datree-*: http://datree.io
Datree Docs-*: https://hub.datree.io/
Support me and get early access to upcoming videos: https://www.youtube.com/channel/UCZNhwA1B5YqiY1nLzmM0ZRg/join
Follow me:
YOUTUBE (GERMAN): bit.ly/ChristianLempaYT
TWITCH (GERMAN): https://www.twitch.tv/christianlempa
TWITTER: https://twitter.com/christian_tdl
INSTAGRAM: https://instagram.com/christian_tdl
DISCORD: https://discord.com/invite/bz2SN7d
GITHUB: https://github.com/xcad2k
BLOG: https://www.the-digital-life.com
MY EQUIPMENT: https://kit.co/thedigitallife
Timestamps:
00:00 – Introduction
01:21 – What is K3s?
02:47 – Getting started with K3s
04:37 – K3s HA Setups and embedded Etcd
08:34 – My preferred Setup on Proxmox
10:30 – Install K3s on the Servers
14:55 – Set up a Load Balancing
19:20 – Connect to Kubernetes
20:36 – Deploy Manifests with Datree-* for HA
26:18 – Set up Traefik on K3s
28:27 – Test HA by taking a server down
#Kubernetes #k3s #homelab
________________
All links with “*” are affiliate links.
source
I want to do something by running kubernetes on a proxmox cluster however I still have a lot to learn about kubernetes and I assume the storage aspect will be more complicated with a Proxmox cluster. Thank you for the content I look forward to seeing more!
This may be off topic, but I've been interested in exposing some web apps that I'm hosting on my home network to the internet. I'm a software engineer, but I don't have a lot of experience in infrastructure. Is there any reasonably safe way to expose servers to the internet? Could anyone recommend any learning materials on how to properly setup IT infrastructure?
I've always been interested in setting up my homelab properly. Maybe using some combo of Ansible, Kubernetes, maybe some private code repositories and setting up a CICD pipeline locally. This is a very large endeavor and the sheer scale and lack of Infrastructure knowledge on my part makes me hesitant to even try.
It's also discouraging to me as a beginner that all the existing tutorials out there are either outdated, don't work, or skip difficult topics.
This was a spectacularly well made intro to kubernetes/K3s for dummies like me who do not know anything about kubernetes. Very, very well done, sir!
Really nice video! Just a question, is this enough to deploy ha stateful apps? How is ha storage problem solved? This topic can be very useful to handle it on a video.
There is an error when creating the first server you must not use –token=YOUR-SECRET or installation fails
Really great video…. very well explained.
Just out of curiosity…. why not separate the roles – server nodes and worker nodes? Is there any benefit to having deployments on your server nodes?
What is your terminal tool??? Is very cool! with multi windows
Not a Kubernetes expert, I just watched a few videos on it, but I think you can load balance inside Kubernetes itself.
You can set a shared (cluster) IP for the three nodes and configure how the traffic is balanced between them.
28:15 you can apply anti affinity rule (with labelling of node) to make sure that pods get deployed always on all 3 and not together
Should take a look at techno Tim's ansible playbooks he recently shared, automated K3s setup using ha etcd
Out of curiosity why are you using a /16 on the network. I understand growth but a /16 is confusing to me, Iām wondering why not just use a /23 (512 IPās) or a /22 (1024 IPās) for your particular setup?
Weird question but does somebody knows how the DIAGRAM at 9:00 was made? The one for the preferred Proxmox setup
a-w-e-s-o-m-e !!!
Iāve set up k3s HA on Alpine at work. Running on top of vmware with first class storage. Perfectly smooth!
The Achilles heel of any clustering system is the storage. If your services require storage, k8s doesn't really handle that well unless you integrate a clustered file system. This is usually ignored by "How to do k8s cluster" guides. If your services don't require storage or you already have an HA storage setup, then k8s out of the box is great.
You can also mix ARM (Raspberry PI) and X86 systems, but you'll find that the workloads need to be properly labeled because there aren't pre-created ARM docker containers for all services that you might want to run.
Awesome video!!! Would be awesome to do one with only pi's. Like 3 or more Raspberry Pi for the cluster and other Pi's for other things š 8)
Or maybe just use cassandra for an external database it solves all the problems š
I stick to RKE because I do not like traffic and the ingress solution, find it to difficult to change that.
Installation is similiar to rke2
Have you used k3sup to install instead of a bash script. I'm curious about those tradeoffs. I've also been trying the rancher Harvester HCI as an underlay for my clusters. Seems pretty cool so far.
Hi! really useful information I will try it… Question, how do you made that diagram on the terminal???
possibly I missed it but why did you pick K3s vs say Microk8s or other options? Great information, just always curious why people pick one solution.
Cannot watch a serious video with music in the background! Far too distracting! š
Installation is easier with k3sup
Even though I already have a k3s cluster at home, this was still an interesting and informative video. Looking forward to other videos.
Great video, as always š
I really liked the ascii flows , how did you manage to add icons within ascii? it should be some ascii code but with what font?