Home lab – Kubernetes

I’m not a big fan of this stuff however I can’t just ignore it … right? 🙂
The thing about Kubernetes is that it provides orchestration for containers and more importantly … it does a pretty good job at that to say the least.

Deploying Kubernetes on the most popular distros for enterprise (CentOS/Ubuntu) is easy … Google search and you’ll find tons of articles and whatnot so my focus here is to show you how I did it in my lab as a single node on Gentoo … because Gentoo 🙂

1. For this to work you need to run Gentoo with systemd (I tried deploying a Kubernetes cluster on the openrc version but failed … not saying it will not work, saying that I failed to make it work in a reasonable amount of time so decided to try alternative option …)
2. Install following packages: sys-cluster/kubelet sys-cluster/kubectl sys-cluster/kubeadm app-emulation/docker etcd bash-completion ethtool ebtables socat net-firewall/conntrack-tools (kubeadm init will complain later on if they are missing so let’s be proactive)
3. I used info from following urls to get this going:
https://gist.github.com/thanatos/bc1ef8e9e60fa524cb89734a847ca0bc
https://docs.projectcalico.org/getting-started/kubernetes/quickstart
https://docs.projectcalico.org/getting-started/clis/calicoctl/install

Obviously I will not just copy paste the commands I used to get my instance going as that’s stuff that you can grab from the urls above however I will post a v2 of my setup later on after I play with it some more to understand how some of its backend stuff fits together(ex. like it’s magic networking) and want to secure it a bit as well as show some sample integrations with for example Jenkins

Docker containers at its best right?

Enjoy and stand by for more …


Posted

in

,

by