<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RaspberryPi Archive - Patrick Steinert</title>
	<atom:link href="https://www.patricksteinert.de/category/technology/raspberrypi/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.patricksteinert.de/category/technology/raspberrypi/</link>
	<description>... writes about the Internet of Things, Agile Software Development and Photography</description>
	<lastBuildDate>Tue, 01 Nov 2022 23:08:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>

<image>
	<url>https://www.patricksteinert.de/wordpress/wp-content/uploads/2016/11/cropped-mylogo-32x32.png</url>
	<title>RaspberryPi Archive - Patrick Steinert</title>
	<link>https://www.patricksteinert.de/category/technology/raspberrypi/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Install InfluxDB 2 on a Raspberry Pi 4 in Kubernetes</title>
		<link>https://www.patricksteinert.de/technology/install-influxdb-2-on-a-raspberry-pi-4-in-kubernetes/</link>
					<comments>https://www.patricksteinert.de/technology/install-influxdb-2-on-a-raspberry-pi-4-in-kubernetes/#respond</comments>
		
		<dc:creator><![CDATA[Patrick Steinert]]></dc:creator>
		<pubDate>Wed, 29 Sep 2021 09:23:47 +0000</pubDate>
				<category><![CDATA[RaspberryPi]]></category>
		<category><![CDATA[Technology]]></category>
		<guid isPermaLink="false">https://www.patricksteinert.de/?p=1929</guid>

					<description><![CDATA[<p>I wanted to install InfluxDB 2 on a RaspberryPi 4 in Kubernetes for my home lab setup. I found out, this is not too easy because of 64bit OS and Influx Helm charts. Therefore, here is the comprehensive guide to installing Influx on k8s. Prerequisites I have used the Raspberry Pi 4 Model B(*) for my experiments, but this should also work with the Raspberry Pi 3. The newer RPIs are needed because of the 64-bit architecture because Influx just provides Docker images for 64-bit ARM. Of course, I learned this the hard way. It is also necessary to install a native 64-bit OS on the RPI. This can be Raspberry Pi OS (64-bit beta) or Ubuntu Server (untested). It won&#8217;t work if you just set the 64-bit flag on the boot command line. The kubernetes (or helm) architecture selection mechanism will fail in this case. For Kubernetes, I used&#8230;</p>
<p>The post <a href="https://www.patricksteinert.de/technology/install-influxdb-2-on-a-raspberry-pi-4-in-kubernetes/">Install InfluxDB 2 on a Raspberry Pi 4 in Kubernetes</a> appeared first on <a href="https://www.patricksteinert.de">Patrick Steinert</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>I wanted to install InfluxDB 2 on a RaspberryPi 4 in Kubernetes for my home lab setup. I found out, this is not too easy because of 64bit OS and Influx Helm charts. Therefore, here is the comprehensive guide to installing Influx on k8s.</p>



<h2>Prerequisites</h2>
<figure id="attachment_1971" aria-describedby="caption-attachment-1971" style="width: 300px" class="wp-caption alignright"><img fetchpriority="high" decoding="async" class="wp-image-1971 size-medium" src="https://www.patricksteinert.de/wordpress/wp-content/uploads/2021/09/5e73b3bd26cb3-IMAGE1-300x181.jpeg" alt="Install InfluxDB 2 on a Raspberry Pi 4 in Kubernetes" width="300" height="181" srcset="https://www.patricksteinert.de/wordpress/wp-content/uploads/2021/09/5e73b3bd26cb3-IMAGE1-300x181.jpeg 300w, https://www.patricksteinert.de/wordpress/wp-content/uploads/2021/09/5e73b3bd26cb3-IMAGE1-620x373.jpeg 620w, https://www.patricksteinert.de/wordpress/wp-content/uploads/2021/09/5e73b3bd26cb3-IMAGE1-768x462.jpeg 768w, https://www.patricksteinert.de/wordpress/wp-content/uploads/2021/09/5e73b3bd26cb3-IMAGE1.jpeg 1256w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-1971" class="wp-caption-text">Image Credit: https://www.raspberrypi.org/ / CC BY-SA (https://creativecommons.org/licenses/by-sa/4.0) via Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Raspberry_Pi_4.jpg</figcaption></figure>



<p>I have used the <a href="https://www.amazon.de/gp/search/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=httpwwwpatr05-21&amp;keywords=Raspberry Pi 4&amp;index=aps&amp;camp=1638&amp;creative=6742&amp;linkCode=xm2&amp;linkId=f142eba506c2801dd7be4cb7cc765369">Raspberry Pi 4 Model B</a>(*) for my experiments, but this should also work with the Raspberry Pi 3. The newer RPIs are needed because of the 64-bit architecture because Influx just provides Docker images for 64-bit ARM. Of course, I learned this the hard way.</p>





<p>It is also necessary to install a native 64-bit OS on the RPI. This can be <a href="https://downloads.raspberrypi.org/raspios_arm64/images/">Raspberry Pi OS (64-bit beta)</a> or <a href="https://ubuntu.com/download/raspberry-pi">Ubuntu Server</a> (untested). It won&#8217;t work if you just set the 64-bit flag on the boot command line. The kubernetes (or helm) architecture selection mechanism will fail in this case.</p>



<p>For Kubernetes, I used a plain k3s (v1.19.15) installation via k3sup. I used Helm (v3.5.4) on a remote machine for the installation.</p>





<h2>Installation of InfluxDB 2 in Kubernetes</h2>



<p>I used the helm <a href="https://github.com/influxdata/helm-charts">charts from Influx</a> itself. They have some flaws, but in the end, they worked. I also tested with the bitnami help charts, but they didn&#8217;t work because of a missing image for ARM architecture. This can maybe be fixed manually, but I was happy with the Influx charts.</p>
<p>To use the helm charts, you need to add the repo to helm:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">helm repo add influxdata https://helm.influxdata.com/</pre>
<p>Then search for the influxdb2 helm chart. I have used <a href="https://k8slens.dev/">Lens</a> for this step.</p>
<p><img decoding="async" class="aligncenter wp-image-1932 size-full" src="https://www.patricksteinert.de/wordpress/wp-content/uploads/2021/09/Bildschirmfoto-2021-09-28-um-23.27.47-scaled.jpg" alt="Screenshot of lens" width="2560" height="1909" srcset="https://www.patricksteinert.de/wordpress/wp-content/uploads/2021/09/Bildschirmfoto-2021-09-28-um-23.27.47-scaled.jpg 2560w, https://www.patricksteinert.de/wordpress/wp-content/uploads/2021/09/Bildschirmfoto-2021-09-28-um-23.27.47-300x224.jpg 300w, https://www.patricksteinert.de/wordpress/wp-content/uploads/2021/09/Bildschirmfoto-2021-09-28-um-23.27.47-620x462.jpg 620w, https://www.patricksteinert.de/wordpress/wp-content/uploads/2021/09/Bildschirmfoto-2021-09-28-um-23.27.47-768x573.jpg 768w, https://www.patricksteinert.de/wordpress/wp-content/uploads/2021/09/Bildschirmfoto-2021-09-28-um-23.27.47-1536x1146.jpg 1536w, https://www.patricksteinert.de/wordpress/wp-content/uploads/2021/09/Bildschirmfoto-2021-09-28-um-23.27.47-2048x1527.jpg 2048w" sizes="(max-width: 2560px) 100vw, 2560px" /></p>



<p>At the time I&#8217;ve tried, version 2.0.1 of the helm chart was the latest. This chart didn&#8217;t work because of a wrong file path (<a href="https://issueexplorer.com/issue/influxdata/helm-charts/350">https://issueexplorer.com/issue/influxdata/helm-charts/350</a>). Version 2.0.0 worked fine despite a minor older version of the InfluxDB.</p>
<p>Additional to the helm charts, I have set up an ingress to access influx UI from the outside. You need to replace the serviceName with the generated service name (auto-generated from the helm chart process).</p>
<pre class="EnlighterJSRAW" data-enlighter-language="yaml">---<br />apiVersion: networking.k8s.io/v1beta1<br />kind: Ingress<br />metadata:<br />name: influx-ingress<br />annotations:<br />kubernetes.io/ingress.class: "traefik"<br />traefik.frontend.rule.type: PathPrefixStrip<br />spec:<br />rules:<br />- http:<br />paths:<br />- path: /<br />backend:<br />serviceName: influxdb2-xxxxx<br />servicePort: 80</pre>
<p>This way I can access the InfluxDB 2 on the Raspberry Pi 4 through the Kubernetes. A drawback is the missing <a href="https://github.com/influxdata/influxdb/issues/15721">custom base path of influx</a>. Therefore, you can&#8217;t use another path other than the root for the ingress rule.</p>
<p>I hope this helps you to set up InfluxDB 2 on the Raspberry Pi 4 in Kubernetes. Let me know if you have struggles or tips for even better ways.</p>
<p><span id="more-1929"></span></p>


<p>The post <a href="https://www.patricksteinert.de/technology/install-influxdb-2-on-a-raspberry-pi-4-in-kubernetes/">Install InfluxDB 2 on a Raspberry Pi 4 in Kubernetes</a> appeared first on <a href="https://www.patricksteinert.de">Patrick Steinert</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.patricksteinert.de/technology/install-influxdb-2-on-a-raspberry-pi-4-in-kubernetes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
