<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dmitrii Zhiliaev on Medium]]></title>
        <description><![CDATA[Stories by Dmitrii Zhiliaev on Medium]]></description>
        <link>https://medium.com/@diamon?source=rss-68d3a2738f34------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4PZvq1EPVpMf4y_WsClxKw.jpeg</url>
            <title>Stories by Dmitrii Zhiliaev on Medium</title>
            <link>https://medium.com/@diamon?source=rss-68d3a2738f34------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:42:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@diamon/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Helmwave is the true release manager.]]></title>
            <link>https://diamon.medium.com/helmwave-is-true-release-manager-e7d085a6bd2d?source=rss-68d3a2738f34------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7d085a6bd2d</guid>
            <category><![CDATA[charts]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[helm]]></category>
            <dc:creator><![CDATA[Dmitrii Zhiliaev]]></dc:creator>
            <pubDate>Tue, 03 May 2022 19:22:20 GMT</pubDate>
            <atom:updated>2022-05-17T07:58:57.475Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone! I am the owner of <a href="http://github.com/helmwave/helmwave">helmwave</a>. I use kubernetes and helm everyday. Because I designed helmwave based on my pain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rTzjAYqXeK5Uj34f.png" /><figcaption><a href="https://github.com/helmwave/helmwave">https://github.com/helmwave/helmwave</a></figcaption></figure><p>Helmwave closes popular issues with helm workflow.</p><h3>Forget bash deploy around helm.</h3><p>The example: <a href="https://helmwave.github.io/docs/0.19.x/examples/pass-git-tag/">https://helmwave.github.io/docs/0.19.x/examples/pass-git-tag/</a></p><pre>helm install app ./ --set image.tag=$CI_COMMIT_TAG</pre><p>just describe <em>helmwave.yml</em> and use next command</p><pre>helmwave up</pre><p>The example: <a href="https://helmwave.github.io/docs/0.19.x/examples/single-app-multi-envs/">https://helmwave.github.io/docs/0.19.x/examples/single-app-multi-envs/</a></p><pre>#!/bin/bash<br>if [ $CI_ENV == &#39;prod&#39; ]<br>then<br>  helm upgrade app -f prod.yml<br>else<br>  helm install app -f values.yml<br>fi<br></pre><p>You can describe it in yaml with helmwave. And up it in one command!</p><pre>helmwave up --build</pre><h3>Live tracking deploy!</h3><p>With helmwave you can see an application logs and Kubernetes events.</p><p>The example: <a href="https://helmwave.github.io/docs/0.19.x/examples/kubedog/">https://helmwave.github.io/docs/0.19.x/examples/kubedog/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sKbiVrqh4QHdT_8A.png" /></figure><h3>You don’t need an umbrella chart anymore!</h3><p>I think that an umbrella chart is an anti-pattern.</p><p>if you have 2 app with message broker between each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*P5-blHIXrZ8tFidSTX7nww.png" /></figure><p>Simple helmwave.yml</p><pre>releases:<br>  - name: message-broker<br>  - name: app1<br>  - name: app</pre><p>Helmwave will execute each release in other thread*.</p><ul><li><em>Of course, I mean goroutine.</em></li></ul><h3>Dependencies releases</h3><p>Suppose we have next <a href="https://searchsoftwarequality.techtarget.com/definition/3-tier-application">3-tier</a> application. And we need step by step deployment.</p><ol><li>DB;</li><li>backend;</li><li>frontend.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*Ho1wgUHMX9BJAhc-Hw7Ryw.png" /></figure><pre>releases:<br>  - name: frontend<br>    depends_on: backend@test<br>    namespace: test<br><br>  - name: backend<br>    depends_on: db@test<br>    namespace: test<br><br>  - name: db<br>    namespace: test</pre><p>We also added allow_failure option. When allow_failure is set true. It allows the installation to proceed.</p><h3>Show graph</h3><p>Also helmwave shows a graph dependencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*01CyjiLFtVESFF7GmwG3ww.png" /></figure><h3>Secrets</h3><p>Helmwave can use <a href="https://github.com/hairyhenderson/gomplate">gomplate</a> for fetch secrets from popular services such like aws sm, vault, etc.</p><ul><li><strong>vault:</strong> <a href="https://helmwave.github.io/docs/0.19.x/examples/vault/">https://helmwave.github.io/docs/0.19.x/examples/vault/</a></li><li><strong>aws secret manager:</strong> <a href="https://helmwave.github.io/docs/0.19.x/examples/aws-sm/">https://helmwave.github.io/docs/0.19.x/examples/aws-sm/</a></li></ul><blockquote><a href="https://github.com/hairyhenderson/gomplate">gomplate</a> is a template renderer which supports a growing list of datasources, such as: JSON (including EJSON — encrypted JSON), YAML, AWS EC2 metadata, BoltDB, Hashicorp Consul and Hashicorp Vault secrets.</blockquote><h3>Use helmwave for all your releases.</h3><blockquote>You can also template helmwave.yml. Just create the helmwave.yml.tpl.</blockquote><p>Template everything!</p><p>For example:</p><ul><li>Store list releases in databases;</li><li>Template list releases;</li><li>Template values base on releases;</li><li>Imagination is infinite!</li></ul><p><strong>Become a helm hero with helmwave!</strong></p><p><a href="https://github.com/helmwave/helmwave">https://github.com/helmwave/helmwave</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*_iauyIN3cS6daQW_5Rs4eA.png" /><figcaption>Helmwave needs your github stars.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7d085a6bd2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Helm + Gomplate]]></title>
            <link>https://diamon.medium.com/helm-gomplate-d3e0b472dde3?source=rss-68d3a2738f34------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3e0b472dde3</guid>
            <category><![CDATA[gomplate]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[templating]]></category>
            <category><![CDATA[helm]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Dmitrii Zhiliaev]]></dc:creator>
            <pubDate>Wed, 10 Nov 2021 22:14:44 GMT</pubDate>
            <atom:updated>2021-11-10T22:14:44.093Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7SGYHnRtJUQawctW.jpg" /></figure><p>Helm uses <a href="https://pkg.go.dev/text/template">go templates</a> to render kubernetes manifests. Helm also provide <a href="http://masterminds.github.io/sprig/">Sprig</a> library for extends functionality.</p><p>In this blog post I’m going to show how you can use custom render. <a href="https://gomplate.ca/">Gomplate</a> is just example. You can use another tool if you would.</p><blockquote><em>gomplate is a template renderer which supports a growing list of datasources, such as: JSON (</em>including EJSON - encrypted JSON<em>), YAML, AWS EC2 metadata, </em><a href="https://pkg.go.dev/go.etcd.io/bbolt"><em>BoltDB</em></a><em>, </em><a href="https://www.consul.io/"><em>Hashicorp Consul</em></a><em> and </em><a href="https://www.vaultproject.io/"><em>Hashicorp Vault</em></a><em> secrets.</em></blockquote><p><strong>Install tools</strong></p><p>I use helm v3.7.1 and gomplate v3.10.0 on macOS.</p><pre>$ brew install helm<br>$ brew install gomplate</pre><p>gomplate and helm use the same delimiters {{ and }} for templating .</p><p>Of course you can use doble quotas. But I think this is a bad idea. Just reset delimeters for gomplate.</p><pre>export GOMPLATE_LEFT_DELIM=&quot;[[&quot;<br>export GOMPLATE_RIGHT_DELIM=&quot;]]&quot;</pre><p><strong>Testing</strong></p><pre>echo &#39;Hello, [[ .Env.USER ]]&#39; | gomplate<br>Hello, zhilyaev</pre><p>Looks great!</p><p><strong>Create helm chart</strong></p><pre># [[ defineDatasource &quot;foo&quot; &quot;https://httpbin.org/get&quot; ]]  <br># [[ if not (datasourceReachable &quot;foo&quot;)]] unreachable [[end]]<br># [[ $d := ds &quot;foo&quot; ]]  <br>apiVersion: v1  <br>kind: ConfigMap  <br>metadata:  <br>  name: {{ include &quot;this.fullname&quot; . }}  <br>  labels: {{ include &quot;this.labels&quot; . | nindent 4 }}  <br>data:  <br>  random: &quot;[[ random.AlphaNum 32 ]]&quot;  <br>  host: &quot;[[ $d.headers.Host ]]&quot;</pre><p>Helm has --post-renderer flag. It allows you pass manifest to another tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*poYtqFr0qWhLFR4n.png" /></figure><p><strong>Run</strong></p><pre>helm template this chart --post-renderer gomplate</pre><p>We will get it.</p><pre># Source: this/templates/configmap.yaml<br>#<br># <br># <br>apiVersion: v1<br>kind: ConfigMap<br>metadata:<br>  name: this<br>  labels:<br>    helm.sh/chart: this-0.1.0<br>    app.kubernetes.io/name: this<br>    app.kubernetes.io/instance: this<br>    app.kubernetes.io/version: &quot;1.16.0&quot;<br>    app.kubernetes.io/managed-by: Helm<br>data:<br>  random: &quot;2tJyK9xSsg1gvEmunEokQf4lyGkvojiQ&quot;<br>  host: &quot;httpbin.org&quot;</pre><p><strong>Deploy</strong></p><pre>helm upgrade --install this chart --post-renderer gomplate</pre><p><strong>Profit</strong></p><p><strong>P.S.</strong></p><p>--post-renderer adds extra complexity to your work. Follow KISS you can try <a href="https://github.com/helmwave/helmwave">helmwave</a>. In it, we solve everyday problems when working with helm, without interfering with the functionality of charts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3e0b472dde3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>