<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Iot - Tag - Gene.Tech</title>
        <link>https://geneliu.itaghome.win/tags/iot/</link>
        <description>Iot - Tag - Gene.Tech</description>
        <generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>gene.liu@live.com (Gene Liu)</managingEditor>
            <webMaster>gene.liu@live.com (Gene Liu)</webMaster><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Wed, 05 Feb 2020 00:00:00 &#43;0000</lastBuildDate><atom:link href="https://geneliu.itaghome.win/tags/iot/" rel="self" type="application/rss+xml" /><item>
    <title>Upgrade Home Assistant</title>
    <link>https://geneliu.itaghome.win/2020-02-05-upgrade-hass/</link>
    <pubDate>Wed, 05 Feb 2020 00:00:00 &#43;0000</pubDate>
    <author>gene.liu@live.com (Gene Liu)</author>
    <guid>https://geneliu.itaghome.win/2020-02-05-upgrade-hass/</guid>
    <description><![CDATA[<p>Upgrade Home Assistant to use the latest chart and application version.</p>
<h3 id="check-existing-chart">Check Existing Chart</h3>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-bash">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">helm list
</span></span><span class="line"><span class="cl">NAME     	NAMESPACE	REVISION	UPDATED                                	STATUS  	CHART                	APP VERSION
</span></span><span class="line"><span class="cl">emqx     	default  	<span class="m">1</span>       	2020-01-15 09:50:07.876751946 -0500 EST	deployed	emqx-v4.0.0          	v4.0.0     
</span></span><span class="line"><span class="cl">hass     	default  	<span class="m">3</span>       	2020-01-22 14:40:55.119051419 -0500 EST	deployed	home-assistant-0.9.11	0.101.2    
</span></span><span class="line"><span class="cl">nextcloud	default  	<span class="m">1</span>       	2019-12-24 16:39:19.78369805 -0500 EST 	deployed	nextcloud-1.9.1      	17.0.0</span></span></code></pre></div></div>
<h3 id="update-helm-repo">Update Helm Repo</h3>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-shell">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">helm repo update
</span></span><span class="line"><span class="cl">Hang tight <span class="k">while</span> we grab the latest from your chart repositories...
</span></span><span class="line"><span class="cl">...Successfully got an update from the <span class="s2">&#34;geneliu&#34;</span> chart repository
</span></span><span class="line"><span class="cl">...Successfully got an update from the <span class="s2">&#34;emqx&#34;</span> chart repository
</span></span><span class="line"><span class="cl">...Successfully got an update from the <span class="s2">&#34;stable&#34;</span> chart repository
</span></span><span class="line"><span class="cl">Update Complete. ⎈ Happy Helming!⎈ </span></span></code></pre></div></div>
<h3 id="upgrade-home-assistant-chart">Upgrade Home Assistant Chart</h3>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-bash">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">helm upgrade hass stable/home-assistant -f ./hass.yaml 
</span></span><span class="line"><span class="cl">Release <span class="s2">&#34;hass&#34;</span> has been upgraded. Happy Helming!
</span></span><span class="line"><span class="cl">NAME: hass
</span></span><span class="line"><span class="cl">LAST DEPLOYED: Wed Feb  <span class="m">5</span> 13:10:39 <span class="m">2020</span>
</span></span><span class="line"><span class="cl">NAMESPACE: default
</span></span><span class="line"><span class="cl">STATUS: deployed
</span></span><span class="line"><span class="cl">REVISION: <span class="m">4</span>
</span></span><span class="line"><span class="cl">TEST SUITE: None
</span></span><span class="line"><span class="cl">NOTES:
</span></span><span class="line"><span class="cl">1. Get the application URL by running these commands:
</span></span><span class="line"><span class="cl">  http://myhome.example.com/</span></span></code></pre></div></div>]]></description>
</item>
<item>
    <title>Kubernetes as IoT Base (for Home Assistant, etc.)</title>
    <link>https://geneliu.itaghome.win/2020-02-04-k3s-iot-base/</link>
    <pubDate>Tue, 04 Feb 2020 00:00:00 &#43;0000</pubDate>
    <author>gene.liu@live.com (Gene Liu)</author>
    <guid>https://geneliu.itaghome.win/2020-02-04-k3s-iot-base/</guid>
    <description><![CDATA[<p>I have quite a few applications that are already containerized and managed by Docker Compose. Maintaining the application-level Docker Compose YAML files is a minor task. However, there are a few small pieces of the puzzle that still require manual updates or upgrades from time to time. So, I&rsquo;ve made the decision to migrate, and this is my first blog post documenting the process.</p>
<hr>
<h3 id="install-k3s">Install k3s</h3>
<div class="code-block code-line-numbers open" style="counter-reset: code-block 0">
    <div class="code-header language-shell">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">curl -sfL https://get.k3s.io <span class="p">|</span> sh -s - --no-deploy<span class="o">=</span>traefik --default-local-storage-path<span class="o">=</span>/opt/k3s
</span></span><span class="line"><span class="cl"><span class="c1"># setup kubectl autocompletion</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;source &lt;(kubectl completion bash)&#34;</span> &gt;&gt; ~/.bashrc</span></span></code></pre></div></div>
<p>I have enabled only the minimum services:</p>]]></description>
</item>
</channel>
</rss>
