From 231f2cb2205988cf87062bc9f595307af1ed827f Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 15 May 2022 15:34:36 +0200 Subject: feat: Add missing blog post Add the missing blog post from my hugo blog. Also add a locustfile so I can do some stress test locally. --- content/posts/2020-07-12Road_to_local_K8S.html | 101 +++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 content/posts/2020-07-12Road_to_local_K8S.html (limited to 'content/posts/2020-07-12Road_to_local_K8S.html') diff --git a/content/posts/2020-07-12Road_to_local_K8S.html b/content/posts/2020-07-12Road_to_local_K8S.html new file mode 100644 index 0000000..5d34b27 --- /dev/null +++ b/content/posts/2020-07-12Road_to_local_K8S.html @@ -0,0 +1,101 @@ +
+

Goal

+

+ The goal is to deploy kubernetes on my local networks, and keep everything + as reproducible as possible. +

+

Stack

+

+ I'll use Fedora Core OS, Matchbox and Terraform + 1, a match the requirements for + Tectonic2.

+

Steps

+ +

Network Setup DHCP/TFTP/DNS

+

First learning the basics

+ +

+ To check open ports +

lsof -Pni | grep LISTEN
+

+

+ Run the provided6 image with dnsmasq and + PXE toolkit +

docker run --rm --cap-add=NET_ADMIN --net=host quay.io/coreos/dnsmasq \
+  -d -q \
+  --dhcp-range=192.168.1.3,192.168.1.254 \
+  --enable-tftp --tftp-root=/var/lib/tftpboot \
+  --dhcp-match=set:bios,option:client-arch,0 \
+  --dhcp-boot=tag:bios,undionly.kpxe \
+  --dhcp-match=set:efi32,option:client-arch,6 \
+  --dhcp-boot=tag:efi32,ipxe.efi \
+  --dhcp-match=set:efibc,option:client-arch,7 \
+  --dhcp-boot=tag:efibc,ipxe.efi \
+  --dhcp-match=set:efi64,option:client-arch,9 \
+  --dhcp-boot=tag:efi64,ipxe.efi \
+  --dhcp-userclass=set:ipxe,iPXE \
+  --dhcp-boot=tag:ipxe,http://matchbox.example.com:8080/boot.ipxe \
+  --address=/matchbox.example/192.168.1.2 \
+  --log-queries \
+  --log-dhcp
+

+

Matchbox

+

...

+

PXE network boot enviroment

+

...

+

Terraform Tectonic

+

...

+

Links

+
+ 1 + + https://coreos.com/tectonic/docs/latest/install/bare-metal/metal-terraform.html + +
+
+ 2 + + https://coreos.com/tectonic/docs/latest/install/bare-metal/requirements.html + +
-- cgit v1.2.3