<?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 Roger&#39;s Blog</title>
		<link>https://blog.differentpla.net/tags/kubernetes/</link>
		<description>Recent content in kubernetes on Roger&#39;s Blog</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<lastBuildDate>Sun, 04 May 2025 13:16:00 +0000</lastBuildDate>
		
			<atom:link href="https://blog.differentpla.net/tags/kubernetes/feed.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Using Kubernetes Secrets for External DNS TSIG Keys</title>
				<link>https://blog.differentpla.net/blog/2025/05/04/k8s-external-dns-secrets/</link>
				<pubDate>Sun, 04 May 2025 13:16:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2025/05/04/k8s-external-dns-secrets/</guid>
				<description>&lt;p&gt;Yesterday, I published a post about using &lt;a href=&#34;https://blog.differentpla.net/blog/2025/05/03/k8s-external-dns-synology/&#34;&gt;Kubernetes External DNS with Synology&amp;rsquo;s DNS Server&lt;/a&gt;. This morning, I realised that putting the TSIG key directly in the&#xA;deployment manifest was probably a bad idea. Here&amp;rsquo;s how to put it in a Kubernetes Secret object.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using Kubernetes External DNS with Synology DNS Server</title>
				<link>https://blog.differentpla.net/blog/2025/05/03/k8s-external-dns-synology/</link>
				<pubDate>Sat, 03 May 2025 08:49:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2025/05/03/k8s-external-dns-synology/</guid>
				<description>&lt;p&gt;My router is a Synology RT2600ac; by default it runs &lt;code&gt;dnsmasq&lt;/code&gt;. I recently replaced it with Synology&amp;rsquo;s full-fat DNS&#xA;Service (it&amp;rsquo;s BIND); this broke &lt;a href=&#34;https://blog.differentpla.net/blog/2021/12/29/coredns/&#34;&gt;DNS for my K3s cluster&lt;/a&gt;; here&amp;rsquo;s how I replaced&#xA;that with &lt;code&gt;ExternalDNS&lt;/code&gt;, making everything work again.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Kubernetes Taints and Tolerations</title>
				<link>https://blog.differentpla.net/blog/2025/04/30/k8s-taints-tolerations/</link>
				<pubDate>Wed, 30 Apr 2025 13:02:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2025/04/30/k8s-taints-tolerations/</guid>
				<description>&lt;p&gt;Today I learned, in a way that&amp;rsquo;s going to stick, the difference between Kubernetes &lt;a href=&#34;https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/&#34;&gt;Taints and&#xA;Tolerations&lt;/a&gt; and &lt;a href=&#34;https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity&#34;&gt;Node&#xA;Affinity&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Upgrading Longhorn: Incident Review</title>
				<link>https://blog.differentpla.net/blog/2023/11/05/longhorn-upgrade-incident-report/</link>
				<pubDate>Sun, 05 Nov 2023 21:04:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/11/05/longhorn-upgrade-incident-report/</guid>
				<description>&lt;p&gt;A new release of Longhorn came out a few days ago. I tried upgrading. It did not go well. This is the incident review.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Restricting Longhorn to specific nodes</title>
				<link>https://blog.differentpla.net/blog/2023/11/04/restricting-longhorn-storage-nodes/</link>
				<pubDate>Sat, 04 Nov 2023 13:03:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/11/04/restricting-longhorn-storage-nodes/</guid>
				<description>&lt;p&gt;I&amp;rsquo;ve added a Raspberry Pi node to my K3s cluster, and I don&amp;rsquo;t want it to take part in Longhorn replication.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Daemonset not running on new node</title>
				<link>https://blog.differentpla.net/blog/2023/11/04/daemonset-not-running-on-new-node/</link>
				<pubDate>Sat, 04 Nov 2023 12:47:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/11/04/daemonset-not-running-on-new-node/</guid>
				<description>&lt;p&gt;As part of my over-engineered doorbell project, I&amp;rsquo;ve added a new Raspberry Pi node to my K3s cluster, but none of the&#xA;daemonsets are being scheduled onto it.&lt;/p&gt;</description>
			</item>
			<item>
				<title>K3s: You must be logged in to the server (Unauthorized)</title>
				<link>https://blog.differentpla.net/blog/2023/10/29/k3s-unauthorized/</link>
				<pubDate>Sun, 29 Oct 2023 13:53:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/10/29/k3s-unauthorized/</guid>
				<description>&lt;p&gt;This afternoon, I couldn&amp;rsquo;t run &lt;code&gt;kubectl get namespaces&lt;/code&gt; against my K3s cluster. Instead, I got an &lt;code&gt;Unauthorized&lt;/code&gt; error.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang on Kubernetes: Using Kustomize to manage a ConfigMap for sys.config</title>
				<link>https://blog.differentpla.net/blog/2023/05/01/erlang-k8s-configmap-kustomize/</link>
				<pubDate>Mon, 01 May 2023 13:35:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/05/01/erlang-k8s-configmap-kustomize/</guid>
				<description>&lt;p&gt;In a &lt;a href=&#34;https://blog.differentpla.net/blog/2023/04/13/erlang-k8s-configmap/&#34;&gt;previous post&lt;/a&gt;, I showed how to store &lt;code&gt;sys.config&lt;/code&gt; and&#xA;&lt;code&gt;vm.args&lt;/code&gt; in a ConfigMap. There are some problems with that approach, so I&amp;rsquo;m going to use Kustomize to fix that.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Kubernetes Networking</title>
				<link>https://blog.differentpla.net/blog/2023/04/18/k8s-networking/</link>
				<pubDate>Tue, 18 Apr 2023 13:10:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/18/k8s-networking/</guid>
				<description>&lt;p&gt;My K3s cluster uses MetalLB as a bare-metal &amp;ldquo;load-balancer&amp;rdquo;, and I wondered how it worked. Here&amp;rsquo;s what I found.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Upgrading MetalLB</title>
				<link>https://blog.differentpla.net/blog/2023/04/16/upgrading-metaldb/</link>
				<pubDate>Sun, 16 Apr 2023 16:26:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/16/upgrading-metaldb/</guid>
				<description>&lt;p&gt;I installed MetalLB using helm. Upgrading is a one-liner.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;helm --namespace metallb-system upgrade metallb metallb/metallb&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
			</item>
			<item>
				<title>Erlang on Kubernetes: Using a ConfigMap for sys.config</title>
				<link>https://blog.differentpla.net/blog/2023/04/13/erlang-k8s-configmap/</link>
				<pubDate>Thu, 13 Apr 2023 16:27:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/13/erlang-k8s-configmap/</guid>
				<description>&lt;p&gt;Erlang configuration is typically stored in the &lt;code&gt;sys.config&lt;/code&gt; file. What options do we have if we want to have different&#xA;settings in this file when deploying using Kubernetes?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Rotating CA certificates</title>
				<link>https://blog.differentpla.net/blog/2023/04/07/erlang-cluster-k8s-rotating-ca/</link>
				<pubDate>Fri, 07 Apr 2023 10:31:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/07/erlang-cluster-k8s-rotating-ca/</guid>
				<description>&lt;p&gt;About 3 months ago, the Erlang nodes in my &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-intro/&#34;&gt;cluster&lt;/a&gt; stopped&#xA;talking to each other. This was caused by the &lt;a href=&#34;https://blog.differentpla.net/blog/2023/01/07/erlang-cluster-k8s-certificate-expired/&#34;&gt;CA certificate expiring&lt;/a&gt;. In that post, I asked &amp;ldquo;How &lt;em&gt;do&lt;/em&gt; we roll the CA certificate&#xA;without downtime?&amp;rdquo;. This post explores some options.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Upgrading gitea</title>
				<link>https://blog.differentpla.net/blog/2023/04/03/upgrading-gitea/</link>
				<pubDate>Mon, 03 Apr 2023 15:53:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/03/upgrading-gitea/</guid>
				<description>&lt;p&gt;I&amp;rsquo;m running Gitea and ArgoCD on my K3s cluster, for some GitOps goodness. I noticed that Gitea 1.19.0 recently came out,&#xA;with some features I want to try, such as Gitea Actions. Since I&amp;rsquo;m running 1.17.4, it&amp;rsquo;s time to upgrade.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using MetalLB CRDs</title>
				<link>https://blog.differentpla.net/blog/2023/04/03/metallb-crds/</link>
				<pubDate>Mon, 03 Apr 2023 15:33:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/04/03/metallb-crds/</guid>
				<description>&lt;p&gt;When I originally &lt;a href=&#34;https://blog.differentpla.net/blog/2021/12/20/installing-metallb/&#34;&gt;installed MetalLB&lt;/a&gt;, it used a &lt;code&gt;ConfigMap&lt;/code&gt; for&#xA;setting up address ranges. Since 0.13.2, it supports configuration using Custom Resource Definitions (CRDs). I forgot to&#xA;write a blog post about that when I upgraded.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Cert-Manager Audit</title>
				<link>https://blog.differentpla.net/blog/2023/03/20/k8s-cert-manager-audit/</link>
				<pubDate>Mon, 20 Mar 2023 13:15:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/03/20/k8s-cert-manager-audit/</guid>
				<description>&lt;p&gt;In &lt;a href=&#34;https://blog.differentpla.net/blog/2023/03/19/expired-certificates-incident-review/&#34;&gt;Expired Certificates: Incident Review&lt;/a&gt;, I&#xA;listed a future action: &lt;em&gt;&amp;ldquo;Audit the cluster to see if there are any other TLS secrets that aren&amp;rsquo;t using cert-manager.&amp;rdquo;&lt;/em&gt;&#xA;Here&amp;rsquo;s how I did it using Elixir Livebook.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Expired Certificates: Incident Review</title>
				<link>https://blog.differentpla.net/blog/2023/03/19/expired-certificates-incident-review/</link>
				<pubDate>Sun, 19 Mar 2023 20:07:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/03/19/expired-certificates-incident-review/</guid>
				<description>&lt;p&gt;During the morning of March 18th, 2023, while investigating &lt;a href=&#34;https://blog.differentpla.net/blog/2023/03/18/metallb-incident-review/&#34;&gt;this incident&lt;/a&gt;, Firefox reported a &amp;ldquo;your connection is not secure&amp;rdquo; error when connecting to&#xA;my gitea server. This is the incident review.&lt;/p&gt;</description>
			</item>
			<item>
				<title>MetalLB ARP failure: Incident Review</title>
				<link>https://blog.differentpla.net/blog/2023/03/18/metallb-incident-review/</link>
				<pubDate>Sat, 18 Mar 2023 11:54:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/03/18/metallb-incident-review/</guid>
				<description>&lt;p&gt;On the morning of March 18th, 2023, accessing any sites hosted by my Kubernetes cluster would fail with a &amp;ldquo;Connection&#xA;Timed Out&amp;rdquo; error. This is the incident review.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Writing a kubectl ssh plugin</title>
				<link>https://blog.differentpla.net/blog/2023/02/28/kubectl-ssh-plugin/</link>
				<pubDate>Tue, 28 Feb 2023 12:54:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/02/28/kubectl-ssh-plugin/</guid>
				<description>&lt;p&gt;In &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-ssh/&#34;&gt;this post&lt;/a&gt;, I showed how to access the Erlang console via SSH&#xA;using &lt;code&gt;kubectl port-forward&lt;/code&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Fatal - Certificate Expired</title>
				<link>https://blog.differentpla.net/blog/2023/01/07/erlang-cluster-k8s-certificate-expired/</link>
				<pubDate>Sat, 07 Jan 2023 17:11:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/07/erlang-cluster-k8s-certificate-expired/</guid>
				<description>&lt;p&gt;The nodes in the &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-intro/&#34;&gt;cluster&lt;/a&gt; stopped talking to each other at&#xA;some point. I only noticed this afternoon after investigating &lt;a href=&#34;https://blog.differentpla.net/blog/2023/01/07/network-connectivity-incident-review/&#34;&gt;some other problem&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Redirecting HTTP to HTTPS with Traefik on K3s</title>
				<link>https://blog.differentpla.net/blog/2023/01/06/traefik-https-redirect/</link>
				<pubDate>Fri, 06 Jan 2023 16:57:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2023/01/06/traefik-https-redirect/</guid>
				<description>&lt;p&gt;I want visitors to &lt;code&gt;http://home.k3s.differentpla.net&lt;/code&gt; to be redirected to &lt;code&gt;https://home.k3s.differentpla.net&lt;/code&gt;. Here&amp;rsquo;s&#xA;how to set that up on K3s, using Traefik middlewares.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Conclusion</title>
				<link>https://blog.differentpla.net/blog/2022/12/23/erlang-cluster-k8s-conclusion/</link>
				<pubDate>Fri, 23 Dec 2022 18:09:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/23/erlang-cluster-k8s-conclusion/</guid>
				<description>&lt;p&gt;This started as a quick experiment to spin up an Erlang cluster on Kubernetes, using TLS distribution, and to validate&#xA;using &lt;em&gt;cert-manager&lt;/em&gt; to issue the pod certificates.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: CertificateRequest cleanup</title>
				<link>https://blog.differentpla.net/blog/2022/12/23/erlang-cluster-k8s-certreq-cleanup/</link>
				<pubDate>Fri, 23 Dec 2022 17:36:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/23/erlang-cluster-k8s-certreq-cleanup/</guid>
				<description>&lt;p&gt;In &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-certificate-requests-cert-manager/&#34;&gt;this post&lt;/a&gt;, I showed how to use&#xA;an init container to create &lt;code&gt;CertificateRequest&lt;/code&gt; objects, which &lt;em&gt;cert-manager&lt;/em&gt; signs, returning the certificates. A new&#xA;request is created every time a pod starts. This eventually leaves a lot of stale &lt;code&gt;CertificateRequest&lt;/code&gt; objects. We&#xA;should clean those up.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Polling the CertificateRequest</title>
				<link>https://blog.differentpla.net/blog/2022/12/23/erlang-cluster-k8s-poll-certreq/</link>
				<pubDate>Fri, 23 Dec 2022 17:19:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/23/erlang-cluster-k8s-poll-certreq/</guid>
				<description>&lt;p&gt;In a &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-certificate-requests-cert-manager/&#34;&gt;previous post&lt;/a&gt;, I used &lt;code&gt;sleep 5s&lt;/code&gt; to wait for &lt;em&gt;cert-manager&lt;/em&gt; to complete the &lt;code&gt;CertificateRequest&lt;/code&gt;. Instead, we should poll the &lt;code&gt;status&lt;/code&gt; field.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Using a namespace-scoped issuer</title>
				<link>https://blog.differentpla.net/blog/2022/12/23/erlang-cluster-k8s-namespace-issuer/</link>
				<pubDate>Fri, 23 Dec 2022 17:06:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/23/erlang-cluster-k8s-namespace-issuer/</guid>
				<description>&lt;p&gt;In &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-certificate-requests-cert-manager/&#34;&gt;an earlier post&lt;/a&gt;, I used a&#xA;&lt;code&gt;ClusterIssuer&lt;/code&gt; that I originally created when &lt;a href=&#34;https://blog.differentpla.net/blog/2022/02/06/cert-manager/&#34;&gt;first setting up cert-manager&lt;/a&gt;. That needs fixing.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Readiness Probe</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-readiness-probe/</link>
				<pubDate>Thu, 22 Dec 2022 17:50:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-readiness-probe/</guid>
				<description>&lt;p&gt;While scaling up/down the deployment for my Erlang cluster, I regularly refresh the web page that displays cluster&#xA;members. Occasionally, I get a &amp;ldquo;502 Bad Gateway&amp;rdquo; error from Traefik. What&amp;rsquo;s with that?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: SSH public key authentication</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-ssh-pubkey/</link>
				<pubDate>Thu, 22 Dec 2022 15:25:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-ssh-pubkey/</guid>
				<description>&lt;p&gt;In the &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-ssh/&#34;&gt;previous post&lt;/a&gt;, I showed how to enable SSH access to the&#xA;Erlang remote console on a pod. When we left it, it had no authentication. Let&amp;rsquo;s fix that.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: SSH daemon</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-ssh/</link>
				<pubDate>Thu, 22 Dec 2022 14:35:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-ssh/</guid>
				<description>&lt;p&gt;As mentioned &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-tls-distribution/&#34;&gt;earlier&lt;/a&gt;, using TLS for Erlang&#xA;distribution breaks &lt;code&gt;erlclu remote_console&lt;/code&gt; (because it breaks &lt;code&gt;erl_call&lt;/code&gt;). At the time, I worked around the problem by&#xA;using &lt;code&gt;nodetool&lt;/code&gt;. This post shows how to use Erlang&amp;rsquo;s SSH daemon instead.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Using the generated certificates</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-use-certs/</link>
				<pubDate>Thu, 22 Dec 2022 10:04:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-use-certs/</guid>
				<description>&lt;p&gt;In the previous two posts, we &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-certificate-requests-openssl/&#34;&gt;generated signing requests with OpenSSL&lt;/a&gt; and &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-certificate-requests-cert-manager/&#34;&gt;submitted them to &lt;em&gt;cert-manager&lt;/em&gt;&lt;/a&gt;. In this post, we&amp;rsquo;ll actually &lt;em&gt;use&lt;/em&gt; the&#xA;generated certificates for mutual TLS.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Submitting certificate requests to cert-manager</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-certificate-requests-cert-manager/</link>
				<pubDate>Thu, 22 Dec 2022 10:01:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-certificate-requests-cert-manager/</guid>
				<description>&lt;p&gt;In the &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-certificate-requests-openssl/&#34;&gt;previous post&lt;/a&gt; we used OpenSSL&#xA;to create a certificate signing request. In this post, we&amp;rsquo;ll submit it to &lt;em&gt;cert-manager&lt;/em&gt; and get the certificate back.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Basic init container</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-init-container/</link>
				<pubDate>Thu, 22 Dec 2022 09:56:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-init-container/</guid>
				<description>&lt;p&gt;As explained &lt;a href=&#34;https://blog.differentpla.net/blog/2022/11/13/cert-signing-options/&#34;&gt;here&lt;/a&gt;, I&amp;rsquo;m going to use an &lt;a href=&#34;https://kubernetes.io/docs/concepts/workloads/pods/init-containers/&#34;&gt;init&#xA;container&lt;/a&gt; to issue the pod certificates.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: TLS distribution</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-tls-distribution/</link>
				<pubDate>Thu, 22 Dec 2022 09:52:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-tls-distribution/</guid>
				<description>&lt;p&gt;In the &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-erlang-clustering/&#34;&gt;previous post&lt;/a&gt;, we got clustering working&#xA;&lt;em&gt;without TLS&lt;/em&gt;. Lifting from the investigation that I wrote up &lt;a href=&#34;https://blog.differentpla.net/blog/2022/11/12/erlang-tls-distribution/&#34;&gt;here&lt;/a&gt;,&#xA;I&amp;rsquo;ll add TLS distribution to my Erlang cluster, but only with server certificates and with no verification (for now).&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Erlang Clustering</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-erlang-clustering/</link>
				<pubDate>Wed, 21 Dec 2022 19:52:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-erlang-clustering/</guid>
				<description>&lt;p&gt;Based on my &lt;a href=&#34;https://blog.differentpla.net/blog/2022/01/08/libcluster-kubernetes/&#34;&gt;investigation with libcluster&lt;/a&gt; in Elixir, I&amp;rsquo;ve&#xA;decided to use DNS-based discovery for finding the other Erlang nodes in the cluster. To do this, we&amp;rsquo;ll need a headless&#xA;service.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Erlang Cookie</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-erlang-cookie/</link>
				<pubDate>Wed, 21 Dec 2022 19:51:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-erlang-cookie/</guid>
				<description>&lt;p&gt;I&amp;rsquo;ve covered this previously; see &lt;a href=&#34;https://blog.differentpla.net/blog/2022/01/09/erlang-cookies-and-kubernetes/&#34;&gt;&amp;ldquo;Erlang/Elixir Cookies and Kubernetes&amp;rdquo;&lt;/a&gt;. Here&amp;rsquo;s the quick version.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Speeding up the container build</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-speeding-container-build/</link>
				<pubDate>Wed, 21 Dec 2022 19:49:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-speeding-container-build/</guid>
				<description>&lt;p&gt;I noticed that whenever I made any change to the application, it caused the &lt;del&gt;docker&lt;/del&gt;podman build to re-fetch and&#xA;recompile all of the dependencies. On the tiny laptop I was using at the time, this was taking several extra minutes for&#xA;every build.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: HTTP Service</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-http-service/</link>
				<pubDate>Wed, 21 Dec 2022 19:47:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-http-service/</guid>
				<description>&lt;p&gt;Because this is going to be a cluster of Erlang nodes, there&amp;rsquo;s (obviously) going to be more than one instance. It makes&#xA;sense to add some kind of way to have some kind of &amp;ldquo;whoami&amp;rdquo; page, so that we can clearly see which node we&amp;rsquo;re talking&#xA;to.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Initial Deployment</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-initial-deployment/</link>
				<pubDate>Wed, 21 Dec 2022 19:45:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-initial-deployment/</guid>
				<description>&lt;p&gt;For simplicity&amp;rsquo;s sake, I created a new application with &lt;code&gt;rebar3 new app name=erlclu&lt;/code&gt;. I very soon regretted this&#xA;decision, because I actually needed a release, so I ran &lt;code&gt;rebar3 new release name=whoops&lt;/code&gt; and manually merged the relevant&#xA;pieces together.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Introduction</title>
				<link>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-intro/</link>
				<pubDate>Wed, 21 Dec 2022 19:40:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/21/erlang-cluster-k8s-intro/</guid>
				<description>&lt;p&gt;A few weeks ago, I decided to write a blog post about using mutual TLS to secure Erlang distribution (clustering), with&#xA;auto-provisioning of certificates when running in Kubernetes. It took a little longer to write up than I expected, and&#xA;turned into a series of blog posts.&lt;/p&gt;</description>
			</item>
			<item>
				<title>What is kubectl doing?</title>
				<link>https://blog.differentpla.net/blog/2022/12/05/what-is-kubectl-doing/</link>
				<pubDate>Mon, 05 Dec 2022 10:49:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/05/what-is-kubectl-doing/</guid>
				<description>&lt;p&gt;You&amp;rsquo;re using &lt;code&gt;kubectl&lt;/code&gt; to do something; you want to do the same using the Kubernetes API (e.g. with &lt;code&gt;curl&lt;/code&gt;). How do you&#xA;figure out what &lt;code&gt;kubectl&lt;/code&gt; is doing?&lt;/p&gt;</description>
			</item>
			<item>
				<title>Options for automatically creating certificates for mutual pod authentication</title>
				<link>https://blog.differentpla.net/blog/2022/11/13/cert-signing-options/</link>
				<pubDate>Sun, 13 Nov 2022 15:04:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/11/13/cert-signing-options/</guid>
				<description>&lt;p&gt;I want to set up an Erlang cluster in Kubernetes, using TLS with mutual authentication. This post discusses some of the&#xA;potential options for doing that. It&amp;rsquo;s also applicable to general mutual TLS between pods.&lt;/p&gt;</description>
			</item>
			<item>
				<title>VictoriaMetrics static scraper</title>
				<link>https://blog.differentpla.net/blog/2022/10/16/victoria-metrics-static-scraper/</link>
				<pubDate>Sun, 16 Oct 2022 15:07:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/10/16/victoria-metrics-static-scraper/</guid>
				<description>&lt;p&gt;I&amp;rsquo;ve got an Electric Imp Environment Tail in my office. It monitors the temperature, humidity and pressure. Currently,&#xA;to display a graph, it&amp;rsquo;s using flot.js and some shonky Javascript that I wrote. It remembers samples from the last 48&#xA;hours.&lt;/p&gt;</description>
			</item>
			<item>
				<title>VictoriaMetrics</title>
				<link>https://blog.differentpla.net/blog/2022/10/16/victoria-metrics/</link>
				<pubDate>Sun, 16 Oct 2022 12:07:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/10/16/victoria-metrics/</guid>
				<description>&lt;p&gt;The documentation for VictoriaMetrics is a bit of a mess, so here&amp;rsquo;s what worked for me.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing Grafana</title>
				<link>https://blog.differentpla.net/blog/2022/10/16/grafana/</link>
				<pubDate>Sun, 16 Oct 2022 10:37:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/10/16/grafana/</guid>
				<description>&lt;p&gt;Using ArgoCD CLI:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;% argocd app create grafana --repo https://git.k3s.differentpla.net/roger/grafana.git --path . --dest-server https://kubernetes.default.svc --dest-namespace grafana&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;application &amp;#39;grafana&amp;#39; created&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;p&gt;The rest of this is taken from &lt;a href=&#34;https://grafana.com/docs/grafana/latest/setup-grafana/installation/kubernetes/&#34;&gt;https://grafana.com/docs/grafana/latest/setup-grafana/installation/kubernetes/&lt;/a&gt;, except that I&amp;rsquo;ll use an Ingress, rather than a LoadBalancer.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing ArgoCD Command Line Interface</title>
				<link>https://blog.differentpla.net/blog/2022/10/16/installing-argocd-cli/</link>
				<pubDate>Sun, 16 Oct 2022 09:37:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/10/16/installing-argocd-cli/</guid>
				<description>&lt;p&gt;ArgoCD provides a web interface and a command line interface. Let&amp;rsquo;s install the CLI.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Using kustomize to configure nginx to serve static HTML</title>
				<link>https://blog.differentpla.net/blog/2022/10/15/kustomize-nginx/</link>
				<pubDate>Sat, 15 Oct 2022 14:37:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/10/15/kustomize-nginx/</guid>
				<description>&lt;p&gt;As I add more things to my k3s cluster, I find myself wishing that I had a handy index of their home pages. For example,&#xA;I&amp;rsquo;ve got ArgoCD and Gitea installed. I probably want to expose the Longhorn console, and the Kubernetes console. I think&#xA;Traefik has a console, too. I&amp;rsquo;ll also be adding Grafana at some point soon.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Livebook as K8s Cluster Admin</title>
				<link>https://blog.differentpla.net/blog/2022/03/09/livebook-k8s-cluster-admin/</link>
				<pubDate>Wed, 09 Mar 2022 12:29:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/03/09/livebook-k8s-cluster-admin/</guid>
				<description>&lt;p&gt;Because I like experimenting with Kubernetes from Elixir Livebook, I made the service account into a cluster admin.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing cert-manager</title>
				<link>https://blog.differentpla.net/blog/2022/02/06/cert-manager/</link>
				<pubDate>Sun, 06 Feb 2022 15:18:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/02/06/cert-manager/</guid>
				<description>&lt;p&gt;Up to this point, I&amp;rsquo;ve been creating and installing certificates manually. Let&amp;rsquo;s see if&#xA;&lt;a href=&#34;https://cert-manager.io/&#34;&gt;cert-manager&lt;/a&gt; will make that easier.&lt;/p&gt;</description>
			</item>
			<item>
				<title>(Not) Upgrading ArgoCD</title>
				<link>https://blog.differentpla.net/blog/2022/02/05/not-upgrading-argocd/</link>
				<pubDate>Sat, 05 Feb 2022 11:47:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/02/05/not-upgrading-argocd/</guid>
				<description>&lt;p&gt;There&amp;rsquo;s a &lt;a href=&#34;https://www.theregister.com/2022/02/04/argo_cd_0day_kubernetes/&#34;&gt;security fix&lt;/a&gt; that needs to be applied;&#xA;there&amp;rsquo;s an &lt;a href=&#34;https://github.com/argoproj/argo-cd/releases/tag/v2.3.0-rc5&#34;&gt;arm64 release candidate&lt;/a&gt;. Time to upgrade&#xA;ArgoCD.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Securing Gitea with HTTPS</title>
				<link>https://blog.differentpla.net/blog/2022/02/04/gitea-https/</link>
				<pubDate>Fri, 04 Feb 2022 17:46:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/02/04/gitea-https/</guid>
				<description>&lt;p&gt;I&amp;rsquo;ve got Gitea installed on my cluster, but it&amp;rsquo;s currently accessed via HTTP (i.e. no TLS; it&amp;rsquo;s not secure).&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing ArgoCD on k3s</title>
				<link>https://blog.differentpla.net/blog/2022/02/02/argocd/</link>
				<pubDate>Wed, 02 Feb 2022 17:57:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/02/02/argocd/</guid>
				<description>&lt;p&gt;We&amp;rsquo;re using ArgoCD at work; time to play with it.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Securing an Ingress with TLS</title>
				<link>https://blog.differentpla.net/blog/2022/01/31/securing-ingress-tls/</link>
				<pubDate>Mon, 31 Jan 2022 18:35:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/01/31/securing-ingress-tls/</guid>
				<description>&lt;p&gt;My &lt;a href=&#34;https://blog.differentpla.net/blog/2022/01/30/gitea/&#34;&gt;Gitea instance&lt;/a&gt; isn&amp;rsquo;t using TLS, so I&amp;rsquo;m going to replace the LoadBalancer with an Ingress, which will allow TLS termination.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing Gitea on k3s</title>
				<link>https://blog.differentpla.net/blog/2022/01/30/gitea/</link>
				<pubDate>Sun, 30 Jan 2022 14:46:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/01/30/gitea/</guid>
				<description>&lt;p&gt;I want to play with &lt;a href=&#34;https://www.gitops.tech/&#34;&gt;GitOps&lt;/a&gt; on my k3s cluster (specifically ArgoCD). To do that, I&amp;rsquo;m going to&#xA;need a local git server. I decided to use &lt;a href=&#34;https://docs.gitea.io/en-us/&#34;&gt;Gitea&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Accessing the Kubernetes API from an Elixir container</title>
				<link>https://blog.differentpla.net/blog/2022/01/16/k8s-api-elixir-container/</link>
				<pubDate>Sun, 16 Jan 2022 13:04:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/01/16/k8s-api-elixir-container/</guid>
				<description>&lt;p&gt;If you want to access the Kubernetes API from Elixir, you should probably just use the&#xA;&lt;a href=&#34;https://hex.pm/packages/k8s&#34;&gt;k8s package&lt;/a&gt;, but here&amp;rsquo;s how to do it without taking that dependency.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang/Elixir Cookies and Kubernetes</title>
				<link>https://blog.differentpla.net/blog/2022/01/09/erlang-cookies-and-kubernetes/</link>
				<pubDate>Sun, 09 Jan 2022 10:27:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/01/09/erlang-cookies-and-kubernetes/</guid>
				<description>&lt;p&gt;Distributed Erlang and Elixir applications use a shared secret called a &amp;ldquo;cookie&amp;rdquo;.  It&amp;rsquo;s just a string of alphanumeric&#xA;characters. All nodes in the cluster must use the same cookie. Let&amp;rsquo;s take a look at what that means in a Kubernetes&#xA;context.&lt;/p&gt;</description>
			</item>
			<item>
				<title>CoreDNS: endpoint_pod_names</title>
				<link>https://blog.differentpla.net/blog/2022/01/08/coredns-endpoint-pod-names/</link>
				<pubDate>Sat, 08 Jan 2022 19:34:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/01/08/coredns-endpoint-pod-names/</guid>
				<description>&lt;p&gt;I&amp;rsquo;m still on the hunt for a way to connect Erlang nodes in a Kubernetes cluster by using pod names.&lt;/p&gt;</description>
			</item>
			<item>
				<title>libcluster and Kubernetes</title>
				<link>https://blog.differentpla.net/blog/2022/01/08/libcluster-kubernetes/</link>
				<pubDate>Sat, 08 Jan 2022 14:07:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/01/08/libcluster-kubernetes/</guid>
				<description>&lt;p&gt;I&amp;rsquo;m looking at setting up an Erlang/Elixir cluster in my Kubernetes cluster, using&#xA;&lt;a href=&#34;https://github.com/bitwalker/libcluster&#34;&gt;libcluster&lt;/a&gt;, and I&amp;rsquo;m trying to get my head around some of the implied&#xA;constraints.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Kubernetes API from inside a container</title>
				<link>https://blog.differentpla.net/blog/2022/01/07/k8s-api-in-container/</link>
				<pubDate>Fri, 07 Jan 2022 18:15:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/01/07/k8s-api-in-container/</guid>
				<description>&lt;p&gt;Messing around with the kubernetes API from inside a container.&lt;/p&gt;</description>
			</item>
			<item>
				<title>kubectl proxy and curl</title>
				<link>https://blog.differentpla.net/blog/2022/01/07/kubectl-proxy-curl/</link>
				<pubDate>Fri, 07 Jan 2022 10:23:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/01/07/kubectl-proxy-curl/</guid>
				<description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ kubectl proxy&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Starting to serve on 127.0.0.1:8001&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;p&gt;Now we can use curl without needing any auth:&lt;/p&gt;</description>
			</item>
			<item>
				<title>IP-based pod A records</title>
				<link>https://blog.differentpla.net/blog/2022/01/03/ip-based-pod-dns/</link>
				<pubDate>Mon, 03 Jan 2022 11:11:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/01/03/ip-based-pod-dns/</guid>
				<description>&lt;p&gt;A while ago, I asked &lt;a href=&#34;https://stackoverflow.com/questions/60741801/why-arent-pod-names-registered-in-kubernetes-dns&#34;&gt;why pod names don&amp;rsquo;t resolve in&#xA;DNS&lt;/a&gt;, and never really&#xA;got a satisfactory answer. One way you can connect to a pod (rather than with a service), is to use the dashed-IP form&#xA;of the pod address, e.g. &lt;code&gt;10-42-2-46.default.pod.cluster.local&lt;/code&gt;. Here&amp;rsquo;s how it works.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Installing MetalLB</title>
				<link>https://blog.differentpla.net/blog/2021/12/20/installing-metallb/</link>
				<pubDate>Mon, 20 Dec 2021 20:55:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2021/12/20/installing-metallb/</guid>
				<description>&lt;p&gt;Installation with Helm, per &lt;a href=&#34;https://metallb.universe.tf/installation/#installation-with-helm&#34;&gt;https://metallb.universe.tf/installation/#installation-with-helm&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;add-the-repo&#34;&gt;Add the repo&lt;a href=&#34;#add-the-repo&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;helm repo add metallb https://metallb.github.io/metallb&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;&lt;h2 id=&#34;create-the-values-file&#34;&gt;Create the values file&lt;a href=&#34;#create-the-values-file&#34;&gt;&lt;span class=&#34;icon icon-link&#34;&gt;&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;My home network is &lt;code&gt;192.168.28.x&lt;/code&gt;, my DHCP server allocates &lt;code&gt;.100&lt;/code&gt; and up, so we&amp;rsquo;ll use a pool of addresses outside that range.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
