<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>erlang-cluster-k8s on Roger&#39;s Blog</title>
		<link>https://blog.differentpla.net/series/erlang-cluster-k8s/</link>
		<description>Recent content in erlang-cluster-k8s on Roger&#39;s Blog</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<lastBuildDate>Fri, 23 Dec 2022 18:09:00 +0000</lastBuildDate>
		
			<atom:link href="https://blog.differentpla.net/series/erlang-cluster-k8s/feed.xml" rel="self" type="application/rss+xml" />
			<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: pid zero</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-pid-zero/</link>
				<pubDate>Thu, 22 Dec 2022 18:13:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-pid-zero/</guid>
				<description>&lt;p&gt;Erlang doesn&amp;rsquo;t like running as pid 0 (usually the init process). I used &lt;code&gt;tini&lt;/code&gt; to fix it.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Erlang cluster on Kubernetes: Non-root user</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-non-root-user/</link>
				<pubDate>Thu, 22 Dec 2022 18:08:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-non-root-user/</guid>
				<description>&lt;p&gt;The Erlang daemon that I&amp;rsquo;ve been using to demonstrate Erlang distribution on K8s is running as the root user. I&amp;rsquo;m going&#xA;to fix that.&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: Is it mutual?</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-inspect-sslsocket/</link>
				<pubDate>Thu, 22 Dec 2022 16:45:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-inspect-sslsocket/</guid>
				<description>&lt;p&gt;In theory, we&amp;rsquo;ve &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-tls-distribution/&#34;&gt;got TLS working&lt;/a&gt; for our Erlang&#xA;cluster, with &lt;a href=&#34;https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-use-certs/&#34;&gt;mutual authentication&lt;/a&gt;. How do we prove&#xA;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: Creating Certificate signing requests with OpenSSL</title>
				<link>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-certificate-requests-openssl/</link>
				<pubDate>Thu, 22 Dec 2022 09:58:00 +0000</pubDate>
				<guid>https://blog.differentpla.net/blog/2022/12/22/erlang-cluster-k8s-certificate-requests-openssl/</guid>
				<description>&lt;p&gt;Erlang TLS distribution is picky about how its certificates are created. OpenSSL is a pain to use. Here&amp;rsquo;s how to&#xA;awkwardly wedge the two together. This took me several hours and a lot of my sanity. You&amp;rsquo;re welcome.&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>
	</channel>
</rss>
