<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Kubernetes on MLog</title><link>http://blog.ghanmi.me/tags/kubernetes/</link><description>Recent content in Kubernetes on MLog</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 24 Mar 2026 01:38:01 +0100</lastBuildDate><atom:link href="http://blog.ghanmi.me/tags/kubernetes/index.xml" rel="self" type="application/rss+xml"/><item><title>2 Nodes k8s Cluster with Terraform, Libvirt, and Ansible</title><link>http://blog.ghanmi.me/posts/2-nodes-k8s-cluster-with-terraform-libvirt-and-ansible/</link><pubDate>Sun, 02 Feb 2025 00:00:00 +0000</pubDate><guid>http://blog.ghanmi.me/posts/2-nodes-k8s-cluster-with-terraform-libvirt-and-ansible/</guid><description>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 sudo apt-get update sudo apt-get install -y \ qemu-kvm libvirt-daemon-system libvirt-clients \ bridge-utils virtinst virt-manager # Terraform (via HashiCorp APT repo) wget -O- https://apt.releases.hashicorp.com/gpg | \ sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.</description></item><item><title>Single-Node Kubernetes Cluster with Terraform, Libvirt, and Ansible</title><link>http://blog.ghanmi.me/posts/single-node-k8s-terraform-libvirt-ansible/</link><pubDate>Mon, 14 Oct 2024 00:00:00 +0000</pubDate><guid>http://blog.ghanmi.me/posts/single-node-k8s-terraform-libvirt-ansible/</guid><description>Why This Stack? Running Kubernetes locally or in a homelab doesn&amp;rsquo;t require a cloud account. If you have a Linux host with KVM support, you can provision virtual machines with Terraform&amp;rsquo;s dmacvicar/libvirt provider, configure them with Ansible, and end up with a reproducible, single-node cluster that mirrors how you&amp;rsquo;d build real infrastructure. minus the cloud bill.
This guide walks through every layer: host prerequisites, Terraform configuration, cloud-init bootstrapping, Ansible playbooks for kubeadm, and post-install verification.</description></item><item><title>a simple k8s Network Plugin with eBPF</title><link>http://blog.ghanmi.me/posts/building-k8s-cni-plugin-with-ebpf/</link><pubDate>Tue, 03 Sep 2024 00:00:00 +0000</pubDate><guid>http://blog.ghanmi.me/posts/building-k8s-cni-plugin-with-ebpf/</guid><description>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&amp;rsquo;re Building Our plugin will handle a single, well-defined scope: pod-to-pod connectivity on a single node. That means every pod gets an IP address, and any pod can reach any other pod on the same machine. We won&amp;rsquo;t handle multi-node routing, services, or network policy. each of those is a project unto itself.</description></item></channel></rss>