Easy K3s Kubernetes tools WITH K3sup and Kube-VIP

preview_player
Показать описание
Spinning up a Kubernetes HA configuration is made easy with two open source utilities, K3sup and Kube-VIP. Using both of these utilities, we can easily stand up multiple control nodes using a virtual IP address and use the VIP to join the additional nodes to our Kubernetes cluster. For the K3s control nodes, I have spun up (3) Ubuntu Server virtual machines running in VMware vSphere.

My blog:
_____________________________________________________
Social Media:

LinkedIn:

Github:

Introduction - 0:00
Introduction to K3sup - 0:42
Introduction to Kube-VIP - 1:22
Overview of the installation process for K3sup - 1:57
Getting started curling the K3sup executable and installing - 2:20
Generating your public key pair - 2:47
Discussing the ssh-keygen command - 3:09
Copying the public key to your K3s nodes - 3:22
Running t he ssh-copy-id command - 3:40
Reviewing steps so far - 4:02
Creating the Kubernetes cluster using K3sup - 4:29
Running the K3sup command to create the first node in the cluster - 5:57
Looking at kubectl get nodes command - 6:17
Getting started with Kube-VIP - 6:40
Discussing the RBAC manifest - 7:02
Running the RBAC manifest - 7:36
Pulling the latest Kube-VIP image - 7:47
Creating an alias for the kube-vip command - 8:06
Creating the daemonset for Kube-vip - 8:36
Starting to ping the virtual IP address for Kube-VIP - 9:20
Looking at the daemonsets using kubectl - 9:30
Discussing joining the remaining nodes - 10:09
Running the k3sup join command - 10:30
Discussing the parameters of the k3sup join command - 10:43
Running the k3sup join command - 11:11
Joining the final node - 11:35
Editing our kubeconfig file to point to the virtual IP address - 11:55
Discussing the test of HA for Kubernetes - 12:39
Pinging the virtual IP and disconnecting the network adapter from the control plane node that owns VIP - 13:10
Pings start returning once again - 13:38
Concluding thoughts on Kubernetes HA - 13:49

Read my blog post covering the details of Kube-VIP here:

Read about automated K3s clusters using K3sup here:

Traefik ingress example with K3s:

Рекомендации по теме
Комментарии
Автор

It would be much easier to follow along if a simple architecture diagram is provided showing the various IP addresses used in the lab, which IP address is belonging to what server. Right now, is very difficult to visualize what is happening.

lawrenceneo
Автор

Thanks for the great video! If I start adding worker nodes, do I also have to install kube-vip on those too?

zombiewolf
Автор

Great content, I worked with Kubernetes a couple of years ago and was stuck by the "start-from-zero" difficulties. Glad to see things have improved a lot. Couple of questions for you:

1) The company I worked with 2 years ago was a Rancher user; I didn't really care much for Rancher (granted they had an older version of Rancher), do you think it's still useful?

2) What's your opinion on the vCluster project? One of the major issues with Kube I encountered was weak namespace isolation.

solomonhilliard
Автор

Nice video!!! I will test this out. Can you do a follow up to complete the setup to add worker nodes? Then add management WebUI interface like Rancher or Portainer and finally how can roll out any docker apps in the cluster?. Also can the worker nodes can be on a different subnet / VLAN from the control plane nodes?

kirksteinklauber
Автор

Good stuff. I'm stuck trying to decide which youtuber's HA k3s solution to use, though. :)

AlexDresko
Автор

really good content ⭐⭐⭐⭐
I've learned few news tools \techs form this channel already
A place for improve is to do something with chapters: divided to often, as for me, and the names are not the clearest description of what you looking for, if you looking for table-of-contents to return to something

OleksaBaida
Автор

When I tear down my cluster, one of the VMs retains the aliased IP address on the ens192 interface. Is there something I should be doing that will automagically clean that up as well?

DanRossHoward
Автор

When using multiple servers in this configuration, do you configure kube-vip individually or does that get pushed when they join to the master server?

marcramey
Автор

why is your air conditioner in the back so close to the desk? Why so low?

ea_stus
Автор

I need help. I have K8s cluster with four k8s nodes. Would I be able to use K3sup with the k8s cluster nodes? If not how would I setup the three needed K3s nodes? I want to spin up new nodes (either k3s or k8s) because the other four originally were setup by someone else and I dont want to mess with the configurations if I dont need to

adriandeveraaa
Автор

What is the ens192 interface in the kube-vip manifest? The kube-vip pod won't start unless I remove that from the manifest:
level=fatal msg="ens192 is not valid interface, reason: get ens192 failed, error: Link not found"

nate