Question

Which Linux Distribution for Kubernetes/miniKube


Userlevel 6
Badge +6

Hey all, going to try to start up with a bare metal, single node kubernetes implementation with kubevirt. From what I can gather minikube is probably the easiest method to get there so plan to use that as my k8s level. One question I have is that of what is the preferred linux distro to sit underneath such things? I tend to skew towards ubuntu but curious if you all see something better out there for this kind of use case.


19 comments

Userlevel 7
Badge +22

Ubuntu is fine. Also checkout K3S it is closer to a real K8S distro and not that much more of a learning curve.

At the end of the day though whatever you feel more comfortable with!

 

If you have any questions please reach out :) 

 

Userlevel 7
Badge +22

Also you can install both on your laptop too to have a nuke zone, i.e. where you feel free to go nuts and then wipe out without nuking the lab too:

Userlevel 6
Badge +6

awesome, thanks for the information @Geoff Burke !

Userlevel 7
Badge +20

I am interested in this as well to get going with Kubernetes and Kasten stuff.  👀

Userlevel 7
Badge +22

If I remember correctly you are a Macman as well so Rancher Desktop runs on ARM too

 

https://rancherdesktop.io/

Userlevel 5
Badge +3

So if you want bare metal over running this on my daily driver machine, you’ve a few options

 

OpenShift single node - sign up for an account with red hat, get 60 days trial licence from an install, use the assisted installer (liveCD) to built your node from scratch. https://docs.openshift.com/container-platform/4.15/installing/installing_sno/install-sno-installing-sno.html

Rancher https://medium.com/@gregory.grubbs/putting-up-a-rancher-kubernetes-cluster-on-bare-metal-dce3b8ac2a4a

Or Talos Linux, which I think is getting really popular atm, and probably what I’d look at first. https://www.talos.dev/

 

@michaelcade has been using Talos for his homelab at the moment as well, https://github.com/MichaelCade/Kargo

 

Ciao, Jurgen Kubernetes Klopp!

Userlevel 7
Badge +6

If I remember correctly you are a Macman as well so Rancher Desktop runs on ARM too

 

https://rancherdesktop.io/

You won’t be able to run K10 on ARM 

Userlevel 7
Badge +6

Talos for me! 

Userlevel 7
Badge +6

Talos is super easy to create a cluster on vSphere or bare metal 

Userlevel 7
Badge +22

@michaelcade is sporting his Kubecon look!! :) 

Userlevel 7
Badge +22

Just to follow up. I had a free moment and you got me intrigued so I decided to try this out on my non work (i.e. less resources) Laptop. Literally took 10 minutes to get it going on Rancher Desktop on windows. Now have not started to play with it so we will see but nevertheless:

 

 

Userlevel 7
Badge +22

ah @k00laidIT you knew I was a Kubernetes junkie anyways and now you have enabled me 😂 even more. I don’t know why I had avoided or not wandered into Kubevirt before. The problem with Kubernetes is that it is like being on a street with candy stores on both sides, this when you are trying to stick to a diet. 

Anyways, better than drinking beer. I will do a few posts on kubevirt in the near future and see what I can squeeze out of my lego lab. I played around with Rancher Desktop yesterday but as @michaelcade and @saintdle said Talos should be more fun and will try a multi node cluster with it as well. 

 

Userlevel 5
Badge +3

Talos for me! 

geek!

Userlevel 5
Badge +3

ah @k00laidIT you knew I was a Kubernetes junkie anyways and now you have enabled me 😂 even more. I don’t know why I had avoided or not wandered into Kubevirt before. The problem with Kubernetes is that it is like being on a street with candy stores on both sides, this when you are trying to stick to a diet. 

Anyways, better than drinking beer. I will do a few posts on kubevirt in the near future and see what I can squeeze out of my lego lab. I played around with Rancher Desktop yesterday but as @michaelcade and @saintdle said Talos should be more fun and will try a multi node cluster with it as well. 

 

Maybe you can compare Beer to KubeVirt and make it your thing? a connoisseur of alcohol and cloud native.

Userlevel 7
Badge +22

Kubebeer? Now that would be CNCF project!!!

Userlevel 7
Badge +22

could leverage the brain’s eBPF so right in its Kernel. Does cilium for EBPF still leverage a “sidebar” ;)  

Userlevel 7
Badge +6

I think it’s time for us all to jump on a call to discuss and share some of this learning….. 

Userlevel 7
Badge +22

One important thing to remember if you do this on K3S (and I imagine Talos as well, I will try that later) if you want to use software virtualization emulation then you need to set it in the kubevirt CR:

spec.configuration.developerConfiguration.useEmulation to true

 

kubectl edit -n kubevirt kubevirt kubevirt

and add 

spec:
...
configuration:
developerConfiguration:
useEmulation: true

or before you start

export VERSION=$(curl -s https://storage.googleapis.com/kubevirt-prow/release/kubevirt/kubevirt/stable.txt)

wget https://github.com/kubevirt/kubevirt/releases/download/${VERSION}/kubevirt-cr.yaml

and then edit the kubevirt-cr.yaml before applying.

 

I will do a quick post on getting it going on a small 3 node k3s cluster in a bit.

Userlevel 7
Badge +22

This is a lot of fun. Will give Talos and Rancher Desktop a try later but I have used up my allowed Saturday morning screen time already :( Here is the link to my morning setup:

https://community.veeam.com/kubernetes-korner-90/kubevirt-on-k3s-7073?postid=58158#post58158

Comment