<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Piotr Skwarna - Blog</title><link>https://skwarna.eu/blog/</link><description>Recent content on Piotr Skwarna - Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 11 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://skwarna.eu/blog/index.xml" rel="self" type="application/rss+xml"/><item><title>An HA RKE2 cluster on one machine: KVM, MetalLB and Rancher</title><link>https://skwarna.eu/blog/posts/rke2-ha-cluster-kvm/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0000</pubDate><guid>https://skwarna.eu/blog/posts/rke2-ha-cluster-kvm/</guid><description>&lt;p&gt;minikube and kind are great for checking a manifest, but they won&amp;rsquo;t show you what happens when one of three etcd members disappears, when a virtual IP moves to another machine, or when the apiserver starts losing its connection to a slow disk. I wanted a lab as close to production as possible, on a single computer. This is what came out of it:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;three &lt;strong&gt;RKE2&lt;/strong&gt; nodes in HA mode (etcd with a 2-of-3 quorum),&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;MetalLB&lt;/strong&gt; in L2 mode, giving &lt;code&gt;LoadBalancer&lt;/code&gt; services real virtual IPs,&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Rancher&lt;/strong&gt; as the management UI, with its built-in &lt;strong&gt;Fleet&lt;/strong&gt; for GitOps.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Going from an empty host to a running cluster is one script, &lt;code&gt;rke2-lab.sh&lt;/code&gt;. Its messages and comments are in Polish, but the settings are self-explanatory.&lt;/p&gt;</description></item><item><title>Kubernetes on a VPS with one public IP: kubeadm, Gateway API and Let's Encrypt</title><link>https://skwarna.eu/blog/posts/gateway-api-envoy-gateway-single-node/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0000</pubDate><guid>https://skwarna.eu/blog/posts/gateway-api-envoy-gateway-single-node/</guid><description>&lt;p&gt;You have a VPS with one public IP. You want real Kubernetes on it (not k3s, not minikube, but upstream kubeadm), and your apps should be reachable at &lt;code&gt;https://&amp;lt;name&amp;gt;.k8s.skwarna.eu&lt;/code&gt; with valid certificates. No cloud load balancer, and no opening ports by hand for every app.&lt;/p&gt;&#10;&lt;p&gt;This guide covers the whole thing in two parts:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;The cluster:&lt;/strong&gt; kubeadm + containerd + Flannel + metrics-server on a single node behind a firewall, plus three traps I fell into along the way.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Exposing apps:&lt;/strong&gt; wildcard DNS, the &lt;strong&gt;Gateway API&lt;/strong&gt; implemented by &lt;strong&gt;Envoy Gateway&lt;/strong&gt; (instead of the retired ingress-nginx), Let&amp;rsquo;s Encrypt certificates from &lt;strong&gt;cert-manager&lt;/strong&gt;, and a way to get a &amp;ldquo;load balancer&amp;rdquo; without a load balancer.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;The examples use my own domain, &lt;code&gt;k8s.skwarna.eu&lt;/code&gt;; replace it with yours. The test app from this article is live: &lt;a href="https://whoami.k8s.skwarna.eu"&gt;whoami.k8s.skwarna.eu&lt;/a&gt; shows the headers of your request as the pod in the cluster sees them. The server IP is &lt;code&gt;38.45.81.22&lt;/code&gt;.&lt;/p&gt;</description></item></channel></rss>