2 Nodes k8s Cluster with Terraform, Libvirt, and Ansible
What we are building Prerequisites The KVM host needs the following packages installed. Commands are for Debian/Ubuntu. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 # Virtualization stack …
Single-Node Kubernetes Cluster with Terraform, Libvirt, and Ansible
Why This Stack? Running Kubernetes locally or in a homelab doesn’t require a cloud account. If you have a Linux host with KVM support, you can provision virtual machines with Terraform’s …
a simple k8s Network Plugin with eBPF
Prerequisites A working Kubernetes cluster for testing (a single-node kind or kubeadm cluster works perfectly) clang/llvm for compiling eBPF programs, bpftool What We’re Building Our plugin will …
Tracing Tool with eBPF
What Is eBPF, and Why Should You Care? eBPF (extended Berkeley Packet Filter) started life as a packet filtering mechanism, but it has evolved into a general-purpose in-kernel virtual machine. The key …
Local IaC with Terraform & KVM
Phase 1: Host Preparation 1. Install KVM and Libvirt tools (Commands for Ubuntu/Debian) 1 2 sudo apt update sudo apt install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virtinst …
Understanding TShark
Basic Usage 1 2 3 4 5 6 tshark -i <interface> # Capture on interface (e.g., eth0) tshark -r <file.pcap> # Read from capture file tshark -w <file.pcap> # Write capture to file tshark …
Understanding PYC: Python Compiled Files
Python Compiled Files (.pyc) are binary files generated by Python when a script is executed. These files contain the compiled bytecode, which helps Python run programs faster by skipping the …
Building a Firewall with iptables
Phase 1 1. View Current Rules Check if you already have firewall rules running. 1 sudo iptables -L -v -n 2. If you want a clean slate, flush the existing rules. Note: If the default policy is …