From 93ad4d03b9d87d6177514de27bb94d9230da82e6 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Tue, 21 Jun 2022 21:39:04 +0200 Subject: ref: Move from orgmode to markdown I'll never ever again move away from markdown. fix: Move to http ... until I add a certificate --- content/logs/2020-07-13-k8s.org | 73 ----------------------------------------- 1 file changed, 73 deletions(-) delete mode 100644 content/logs/2020-07-13-k8s.org (limited to 'content/logs/2020-07-13-k8s.org') diff --git a/content/logs/2020-07-13-k8s.org b/content/logs/2020-07-13-k8s.org deleted file mode 100644 index b55c982..0000000 --- a/content/logs/2020-07-13-k8s.org +++ /dev/null @@ -1,73 +0,0 @@ ---- -title: "Road to local k8s" -date: 2020-07-13 -tags: ['kubernetes', 'linux', 'fedora'] ---- - -* 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 [fn:1], a match the requirements -for Tectonic [fn:2] - -** Steps -- Network Setup DHCP/TFTP/DNS [fn:3] -- Matchbox [fn:4] -- PXE network boot environment -- Terraform Tectonic [fn:5] - -** Network Setup DHCP/TFTP/DNS -First learning the basics again: - -- https://linuxhint.com/install_dhcp_server_ubuntu/ -- https://www.youtube.com/watch?v=XQ3T14SIlV4 - - -To check open ports -#+BEGIN_SRC sh -lsof -Pni | grep LISTEN -#+END_SRC - -Run the provided [fn:dnsmasq] image with ~dnsmasq~ and PXE toolkit - -#+BEGIN_SRC sh -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 -#+END_SRC - - -** Matchbox -** PXE network boot environment -** Terraform Tectonic - ------- -* Links -[fn:1]https://coreos.com/tectonic/docs/latest/install/bare-metal/metal-terraform.html - -[fn:2]https://coreos.com/tectonic/docs/latest/install/bare-metal/requirements.html - -[fn:3]https://coreos.com/matchbox/docs/latest/network-setup.html - -[fn:4]https://coreos.com/matchbox/docs/latest/deployment.html - -[fn:5]https://coreos.com/tectonic/releases/ - -[fn:dnsmasq]https://github.com/poseidon/matchbox/tree/v0.7.0/contrib/dnsmasq -- cgit v1.2.3