<?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 Ionut Craciunescu on Medium]]></title>
        <description><![CDATA[Stories by Ionut Craciunescu on Medium]]></description>
        <link>https://medium.com/@icraciunescu?source=rss-685fdbc94128------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ARlMFbeEti0OuczFgu3jYQ.jpeg</url>
            <title>Stories by Ionut Craciunescu on Medium</title>
            <link>https://medium.com/@icraciunescu?source=rss-685fdbc94128------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:33:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@icraciunescu/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[From K8 to Serverless at Wealth Wizards]]></title>
            <link>https://medium.com/ww-engineering/from-k8-to-serverless-at-wealth-wizards-293cd086465c?source=rss-685fdbc94128------2</link>
            <guid isPermaLink="false">https://medium.com/p/293cd086465c</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[realworldserverless]]></category>
            <dc:creator><![CDATA[Ionut Craciunescu]]></dc:creator>
            <pubDate>Thu, 23 Jul 2020 09:42:08 GMT</pubDate>
            <atom:updated>2020-07-23T09:42:08.771Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*LkodawOgRHtKP3IJg3u1Sg.jpeg" /></figure><p>It’s been great talking with <a href="https://medium.com/u/d00f1e6b06a2">Yan Cui</a> on <a href="https://twitter.com/RealWorldSls">@RealWorldSls</a> podcast about Wealth Wizards serverless adoption. Have a listen on your favourite podcast player or here: <a href="https://podcasts.google.com/feed/aHR0cHM6Ly9mZWVkcy5idXp6c3Byb3V0LmNvbS84Nzc3NDcucnNz/episode/QnV6enNwcm91dC00MTUzNjgy">https://podcasts.google.com/feed/aHR0cHM6Ly9mZWVkcy5idXp6c3Byb3V0LmNvbS84Nzc3NDcucnNz/episode/QnV6enNwcm91dC00MTUzNjgy</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=293cd086465c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ww-engineering/from-k8-to-serverless-at-wealth-wizards-293cd086465c">From K8 to Serverless at Wealth Wizards</a> was originally published in <a href="https://medium.com/ww-engineering">Wealth Wizards Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Nginx ingress: traffic redirect using annotations demystified]]></title>
            <link>https://medium.com/ww-engineering/kubernetes-nginx-ingress-traffic-redirect-using-annotations-demystified-b7de846fb43d?source=rss-685fdbc94128------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7de846fb43d</guid>
            <category><![CDATA[redirect]]></category>
            <category><![CDATA[nginx-ingress]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[rewrite-rule]]></category>
            <category><![CDATA[annotations]]></category>
            <dc:creator><![CDATA[Ionut Craciunescu]]></dc:creator>
            <pubDate>Wed, 13 May 2020 09:27:03 GMT</pubDate>
            <atom:updated>2020-05-13T09:29:27.789Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*COtUezC74W4rR68f.jpg" /><figcaption>Follow the signs</figcaption></figure><p>Redirect HTTP traffic or rewrite URLs using Kubernetes ingress annotations and Nginx ingress controller. This article explains annotations usage and their effect on the resulting nginx.conf configuration file.</p><p><em>Originally published on </em><a href="https://www.linuxrecruit.co.uk/blog?title=Kubernetes%20Nginx%20Ingress%3A%20Traffic%20Redirect%20Using%20Annotations%20Demystified&amp;id=132"><em>Linux Recruit Blog</em></a><em>.</em></p><h3>1. nginx.ingress.kubernetes.io/rewrite-target</h3><p><a href="https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/rewrite">kubernetes/ingress-nginx</a></p><p><strong>Example 1:</strong></p><pre>apiVersion: networking.k8s.io/v1beta1 <br>kind: Ingress <br>metadata:<br>   annotations:<br>     kubernetes.io/ingress.class: &quot;nginx&quot;<br>     nginx.ingress.kubernetes.io/rewrite-target: /destination$1$2<br>   name: destination-home<br>   namespace: myNamespace<br> spec:<br>   rules:<br>   - host: nginx.redirect<br>     http:<br>       paths:<br>       - backend:<br>           serviceName: http-svc<br>           servicePort: 80 <br>        path: /source(/|$)(.*)</pre><p>This one does a transparent reverse proxy. <br>It does not update the Location header so the URL in the browser does not change.</p><p><strong>Example 2:</strong></p><pre>apiVersion: networking.k8s.io/v1beta1<br> kind: Ingress<br> metadata:<br>   annotations:<br>     kubernetes.io/ingress.class: &quot;nginx&quot;<br>     nginx.ingress.kubernetes.io/rewrite-target: <a href="https://saturn-green.wealthwizards.io/fact-find$1$2">https:/</a>/nginx.redirect<a href="https://saturn-green.wealthwizards.io/fact-find$1$2">/</a>destination<a href="https://saturn-green.wealthwizards.io/fact-find$1$2">$1$2</a><br>   name: destination-home<br>   namespace: myNamespace<br> spec:<br>   rules:<br>   - host: nginx.redirect<br>     http:<br>       paths:<br>       - backend:<br>           serviceName: http-svc<br>           servicePort: 80<br>         path: /source(/|$)(.*)</pre><p>This one changes the Location header and the URL in the browser is updated:</p><pre>HTTP/1.1 302 Moved Temporarily<br>curl -I  <a href="http://saturn-green.wealthwizards.io/home">http://</a>nginx.redirect<a href="http://saturn-green.wealthwizards.io/home">/s</a>ource<br>Location: https://nginx.redirect/destination</pre><pre>HTTP/1.1 302 Moved Temporarily<br>curl -I  <a href="http://saturn-green.wealthwizards.io/home/ping">http://</a>nginx.redirect<a href="http://saturn-green.wealthwizards.io/home/ping">/source/b</a>ar<br>Location: https://nginx.redirect/destination/<a href="http://saturn-green.wealthwizards.io/home/ping">b</a>ar</pre><p>This is because the replacement string as specified in rewrite-target <br>annotation starts with https:// .<br>From <a href="https://nginx.org/en/docs/http/ngx_http_rewrite_module.html"><em>nginx docs</em></a>:</p><pre>In addition, a URL for temporary redirect with the code 302 can be specified as  the sole parameter. Such a parameter should start with the “http://”, “https://”,  or “$scheme” string. <br>.............. <br>If the specified regular expression matches a request URI, URI is changed as  specified in the replacement string. The rewrite directives are executed  sequentially in order of their appearance in the configuration file. It is possible  to terminate further processing of the directives using flags. If a replacement  string starts with “http://”, “https://”, or “$scheme”, the processing stops and  the redirect is returned to a client.</pre><p>Using nginx.ingress.kubernetes.io/permanent-redirect-code: ‘308’annotation has no effect on the code returned as this is controlled by the rewrite rule in nginx.conf . The directive added in nginx.conf is similar to:</p><p>rewrite “(?i)/source(/|$)(.*)” <a href="https://saturn-green.wealthwizards.io/fact-find$1$2">https://</a>nginx.redirect<a href="https://saturn-green.wealthwizards.io/fact-find$1$2">/destination$1$2</a> break;</p><pre>Syntax: break;<br>Default: — <br>Context: server, location, if</pre><pre>Stops processing the current set of ngx_http_rewrite_module directives.  </pre><pre>If a directive is specified inside the location, further processing of the request  continues in this location.</pre><p>If you need to control the return code using a rewrite rule, then you need to use a return directive after the rewrite directive. More info here: <a href="https://www.nginx.com/blog/creating-nginx-rewrite-rules/">https://www.nginx.com/blog/creating-nginx-rewrite-rules</a>. <br>I assume this can be used using nginx.ingress.kubernetes.io/configuration-snippet: | (I have not tried it yet).</p><p>This one is nice: defines the Application Root that the Controller must redirect if it’s in / context:</p><pre>$ echo &quot;<br> apiVersion: extensions/v1beta1<br> kind: Ingress<br> metadata:<br>   annotations:<br>     nginx.ingress.kubernetes.io/app-root: /destination<br>   name: approot<br>   namespace: default<br> spec:<br>   rules:<br>   - host: approot.bar.com<br>     http:<br>       paths:<br>       - backend:<br>           serviceName: http-svc<br>           servicePort: 80<br>         path: /<br> &quot; | kubectl create -f -</pre><p>In the resulting nginx.conf an if statement will be added to the server context :</p><pre>if ($uri = /) {<br>  return 302 /destination<br>}</pre><h3>2. nginx.ingress.kubernetes.io/configuration-snippet: |</h3><pre>apiVersion: networking.k8s.io/v1beta1<br>kind: Ingress<br>metadata:<br>   annotations:<br>     kubernetes.io/ingress.class: &quot;nginx&quot;<br>     nginx.ingress.kubernetes.io/configuration-snippet: |<br>       rewrite ^/source(/?)$ https://nginx.redirect/destination$1 permanent;<br>       name: destination-home<br>   namespace: myNamespace<br> spec:<br>   rules:<br>   - host: nginx.redirect<br>     http:<br>       paths:<br>       - backend:<br>           serviceName: http-svc<br>           servicePort: 80<br>         path: /source</pre><p>This one looks like it gives the greatest control over the redirect/rewrite as it will add the additional configuration snippet to the resulting nginx.conf location.</p><p>permanent: returns a permanent redirect with the 301 code.</p><p>Additional docs <a href="https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#configuration-snippet">here</a>.</p><h3>3. nginx.ingress.kubernetes.io/server-snippet: |</h3><p>Use carefully. While it can be used similar to the one above (only the annotation is slightly different) it will add your custom config to the server block in the resulting nginx.conf , thus taking effect server wide. A redirect/rewrite rule placed in here will be processed before any other statement in a location directive (controlled by a kubernetes ingress resource) so it might lead to undesired behaviour.</p><p>Additional docs <a href="https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#server-snippet">here</a>.</p><h3>4. nginx.ingress.kubernetes.io/permanent-redirect</h3><pre>apiVersion: networking.k8s.io/v1beta1<br>kind: Ingress<br>metadata:<br>   annotations:<br>     nginx.ingress.kubernetes.io/permanent-redirect: https://nginx.redirect<a href="https://saturn-green.wealthwizards.io/fact-find$1$2">/</a>destination<br>     nginx.ingress.kubernetes.io/permanent-redirect-code: &#39;308&#39;<br>   name: destination-home<br>   namespace: myNamespace<br> spec:<br>   rules:<br>   - host: nginx.redirect<br>     http:<br>       paths:<br>       - backend:<br>           serviceName: http-svc<br>           servicePort: 80<br>         path: /source</pre><p>Pretty self explanatory, works a treat 😄</p><pre>curl -I  <a href="http://saturn-green.wealthwizards.io/home">http://</a>nginx.redirect<a href="http://saturn-green.wealthwizards.io/home">/</a>source<br>HTTP/1.1 308 <br>Permanent Redirect <br>Location: https://nginx.redirect/destination</pre><pre>curl -I  http://nginx.redirect<a href="http://saturn-green.wealthwizards.io/home">/</a>source/bar <br>HTTP/1.1 308 <br>Permanent Redirect <br>Location: https://nginx.redirect/destination</pre><p>It adds an if statement in the nginx.conf under /source location as follows:</p><pre>if ($uri ~* /source) {<br>     return 308 https://<a href="https://medium.com/nginx.redirect/destination">n</a>ginx.redirect/destination;<br>    }</pre><p>Additional docs: <a href="https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md#permanent-redirect">annotations.md#permanent-redirect</a> and <a href="https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#permanent-redirect">here</a>.</p><h4>Permanent Redirect</h4><p>This annotation allows to return a permanent redirect instead of sending data to the upstream. For example nginx.ingress.kubernetes.io/permanent-redirect: <a href="https://www.google.com/">https://www.google.com</a> would redirect everything to Google.</p><h4>Permanent Redirect Code</h4><p>This annotation allows you to modify the status code used for permanent redirects. For example nginx.ingress.kubernetes.io/permanent-redirect-code: ‘308’ would return your permanent-redirect with a 308.</p><h4>Temporal Redirect</h4><p>This annotation allows you to return a temporal redirect (Return Code 302) instead of sending data to the upstream. For example nginx.ingress.kubernetes.io/temporal-redirect: <a href="https://www.google.com/">https://www.google.com</a> would redirect everything to Google with a Return Code of 302 (Moved Temporarily)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7de846fb43d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ww-engineering/kubernetes-nginx-ingress-traffic-redirect-using-annotations-demystified-b7de846fb43d">Kubernetes Nginx ingress: traffic redirect using annotations demystified</a> was originally published in <a href="https://medium.com/ww-engineering">Wealth Wizards Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Kubernetes clusters — a lego game]]></title>
            <link>https://medium.com/ww-engineering/building-kubernetes-clusters-a-lego-game-bdd62754cad7?source=rss-685fdbc94128------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdd62754cad7</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[kops]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Ionut Craciunescu]]></dc:creator>
            <pubDate>Sun, 26 Aug 2018 15:05:08 GMT</pubDate>
            <atom:updated>2018-08-28T09:59:25.662Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/537/0*mbEBGqKMLE7p5vrU.jpg" /><figcaption>let cluster = bash (terraform, ansible, kops) =&gt; { make it happen };</figcaption></figure><p>There are many ways and tools that can be used to build a Kubernetes cluster.<br>Starting from <a href="https://kubernetes.io/docs/setup/scratch/">building it from scratch</a>, to tools like <a href="https://github.com/kubernetes/kops">kops</a>, <a href="https://github.com/kubernetes-incubator/kube-aws">kube-aws</a>, <a href="https://github.com/kubicorn/kubicorn">kubicorn</a>, or using hosted clusters like <a href="https://cloud.google.com/kubernetes-engine/">GKE</a> or <a href="https://aws.amazon.com/eks/">EKS</a>. That’s already a lot of options; which one should you choose? This post I will describe what works like a treat for us, at Wealth Wizards, so we have a repeatable, reliable and fast process for building a Kubernetes cluster. In less than 10min we can get a whole cluster stood up, have everything in place (like logging, security, namespaces configs etc.) and deploy services to it.</p><p>AWS is our cloud provider and when we started with Kubernetes, kube-up was to tool to use for building clusters. Since things are always changing and we wanted a better way to build clusters, soon after joining Wealth Wizards I started exploring kube-aws as a replacement to kube-up at team’s suggestion. Initial testing was all good but we could not continue using it because we had to run some software on every node of the cluster that had to be installed through either an .rpm or .deb and kube-aws was using CoreOS. So the next tool in line was kops.</p><p>Kops is a very easy tool to use and get started with. If you just wanna build a cluster, once you’ve decided on a name and an S3 bucket to hold the cluster state, you only have to run</p><pre>kops create cluster \<br>    --zones us-west-2a \<br>    --name myfirstcluster.example.com \<br>    --state s3://prefix-example-com-state-store</pre><p>For more details on kops create see <a href="https://github.com/kubernetes/kops/blob/master/docs/cli/kops_create.md">kops_create.md</a>.</p><p>This command is great for one time run, but for a repeatable process, storing the whole cluster config in code is preferable. kops create -f FILENAME [flags] command to the rescue!! Basically you can store the cluster config in a nice formatted YAML file, run kops create followed by kops update and job done! You can configure almost everything in the YAML file, but you should stick just to the options that you really need to configure and let kops manage everything else for you. One example is the Docker version that is installed on the nodes, unless you really need to manage this, don’t add it to your YAML file. See this page for a nice YAML example: <a href="https://github.com/kubernetes/kops/blob/master/docs/apireference/examples/cluster/cluster.yaml">https://github.com/kubernetes/kops/blob/master/docs/apireference/examples/cluster/cluster.yaml</a></p><p>So far I have this:</p><ul><li>I’ll build my cluster using Kops and from a YAML file</li><li>I’ll build the cluster in an existing VPC (there’s some requirements for having our own VPC. Kops can create a VPC along a Kube cluster as well, which is quite cool, but this is not an options for us)</li><li>I already created automation for maintaining and managing AWS infrastructure using terraform.</li></ul><p>At this point, the next step I need to do is to collect a bunch of ID’s generated by AWS after creating my base infrastructure and automatically populate the YAML file. Enter Ansible - the simplest way to automate apps and IT infrastructure. Don’t believe me? Just google ‘ansible’ and see for yourself. In this case, Ansible is used as a templating tool: I created a role that reads a bunch of variables populated by terraform outputs, applies a jinja2 template and crates a YAML file to be used by kops. Putting all of this together it looks similar to the bellow code snippets.</p><p><strong>1) Terraform:</strong></p><pre>#!/bin/bash -e</pre><pre>cd $dir<br>terraform apply -auto-approve<br>exit_code=$?</pre><pre>source $(git rev-parse --show-toplevel)/{{ scripts_path }}/terraform_output.yml.sh</pre><pre>exit $exit_code</pre><p>Terrform output just runs: terraform output 2&gt;/dev/null | grep “=” | sed ‘s/ =/:/g’ &gt; terraform_output.yml . This creates a YAML file with required outputs (or variables)so it can be consumed by the Ansible role, similar to:</p><pre>ami_name: ami-111111<br>kms_key_arn: arn:aws:kms:eu-west-1:111111111111111:key/11111111-410d-4e11-ad59-1111111111<br>route53_domain: kube.example.com<br>route53_zone_id: Z3HYBV888111<br>security_group_kube_master_id: sg-111111<br>subnet_kube_master_a_cidr_block: 10.0.6.0/24<br>subnet_kube_master_a_id: subnet-7ae15b32<br>subnet_public_kube_a_id: subnet-bbec56f3<br>subnet_public_kube_a_name: kube01-public_kube-a<br>subnet_public_kube_b_cidr_block: 10.0.1.0/24<br>subnet_public_kube_b_id: subnet-111111<br>vpc_cidr: 10.0.0.0/16<br>vpc_id: vpc-111111<br>vpc_name: kube01<br>vpc_parent_dns_domain: example.com<br>vpc_region: eu-west-1</pre><p><strong>2) Ansible:</strong></p><p>Role snippet:</p><pre>- name: Inclue terraform_output<br>  include_vars:<br>    file: &#39;{{ terraform_output_file }}&#39;</pre><pre>- name: Create {{ cluster_file }}<br>  template: src=&#39;cluster.yml.j2&#39;<br>    dest=&#39;{{ cluster_dir }}/{{ cluster_file }}&#39;<br>    mode=0640</pre><p>Jinja2 template snippet:</p><pre>apiVersion: kops/v1alpha2<br>kind: Cluster<br>metadata:<br>  name: {{ cluster_name }}<br>spec:<br>  api:<br>    loadBalancer:<br>      type: {{ loadBalancer_type }}<br>  authorization:<br>    alwaysAllow: {}<br>  channel: stable<br>  cloudLabels:<br>    Service: kubernetes<br>    VPC: {{ vpc_name }}<br>  cloudProvider: aws</pre><pre>configBase: s3://{{ s3_kube_bucket_name }}/{{ cluster_name }}<br>  dnsZone: {{ cluster_name }}<br>..................................................................<br>{% for item in node_groups %}</pre><pre>---{% for item in node_groups %}<br>---<br>apiVersion: kops/v1alpha2<br>kind: InstanceGroup<br>metadata:<br>  labels:<br>    kops.k8s.io/cluster: &quot;{{ cluster_name }}&quot;<br>  name: {{ item.name }}<br>spec:<br>  additionalSecurityGroups:<br>  - {{ security_group_kube_node_id }}<br>{% if item.node_labels is defined %}<br>  nodeLabels:<br>{% for label in item.node_labels %}<br>    {{ label.name  }}: &quot;{{ label.value }}&quot;<br>{% endfor %}<br>..................................................................</pre><p>Playbook:</p><pre>---</pre><pre>- name : build k8s cluster.yaml</pre><pre>hosts       : localhost<br>  gather_facts: false<br>  connection  : local</pre><pre>roles:<br>    - kops_template</pre><pre><strong>vars</strong>:<br>    terraform_output_file: &quot;terraform_output.yml&quot;<br>    cluster_dir:           &quot;/kops&quot;<br>    cluster_file:          &quot;{{ cluster_name }}.yaml&quot;</pre><pre>    <strong>master_count</strong>:      1<br>    <strong>kubernetesVersion</strong>: 1.9.6<br>    loadBalancer_type: &quot;Public&quot;</pre><pre>    <strong>node_groups</strong>:<br>      - name: default-node<br>        node_labels:<br>          - name: node_type<br>            value: default<br>        machineType: m4.large<br>        maxSize:     1<br>        minSize:     1<br>        maxPrice:    0.111</pre><p>Basically this playbook is the most used file in terms of cluster configs. It has entires for the things that I need to manage most of the time. All else is defined in the role defaults or the Jinja2 template.</p><p><strong>3) Kops:</strong></p><pre>kops create -f kops.yaml --name=myfirstcluster.example.com --state=s3://kube-11111111</pre><pre>kops create secret sshpublickey admin -i ~/.ssh/id_rsa.pub \<br>  --name myfirstcluster.example.com --state s3://kube-11111111</pre><pre>kops update cluster --name myfirstcluster.example.com --state s3://kube-11111111</pre><pre>kops update cluster --name myfirstcluster.example.com --state s3://kube-11111111 --yes</pre><p>And that’s it! Press enter after typingkops update cluster --yes and the cluster will be created.</p><p>Now I have: terraform managing the base infrastructure, ansible creating a YAML file by applying a template, and kops building the cluster. All these align nicely, just like lego bricks.</p><p>I used these building blocks for our Kube clusters with the goal to have a consistent, repeatable and reliable process. As an added bonus, it gives excellent DR of the compute part of our infrastructure, it’s all maintained in code and makes future upgrades or cluster patches a breeze.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdd62754cad7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ww-engineering/building-kubernetes-clusters-a-lego-game-bdd62754cad7">Building Kubernetes clusters — a lego game</a> was originally published in <a href="https://medium.com/ww-engineering">Wealth Wizards Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Backup a Consul cluster using `consul snapshot` command]]></title>
            <link>https://medium.com/ww-engineering/consul-snapshot-vault-kubernetes-503dc3332b76?source=rss-685fdbc94128------2</link>
            <guid isPermaLink="false">https://medium.com/p/503dc3332b76</guid>
            <category><![CDATA[consul]]></category>
            <category><![CDATA[backup]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[vault]]></category>
            <dc:creator><![CDATA[Ionut Craciunescu]]></dc:creator>
            <pubDate>Wed, 09 May 2018 16:49:34 GMT</pubDate>
            <atom:updated>2018-06-04T14:32:22.496Z</atom:updated>
            <content:encoded><![CDATA[<h4>When Consul is a Vault storage backend and runs on Kubernetes</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*RuyB-hcU0j41qxLlQZW2gg.jpeg" /></figure><p>Taking full Consul backups for DR scenarios it’s actually quite straightforward: you just need to run consul snapshot save backup.snap. Job done! But what if my Consul cluster is a storage backend for Vault, running on Kubernetes and I want to encrypt my backup and ship it to an AWS S3 bucket? How can I go about running my backup tool of choice on a Kube pod and minimise secrets management?</p><p>Bash to the rescue! And Docker of course, and Vault’s awesome features👏!!</p><p>This post describes how to use consul snapshot save command inside a Kubernetes pod and use <a href="https://www.vaultproject.io/docs/auth/kubernetes.html">Vault Kubernetes auth</a> backend alongside <a href="https://www.vaultproject.io/docs/auth/approle.html">AppRole</a> and <a href="https://www.vaultproject.io/docs/secrets/aws/index.html">AWS secrets engine</a> to backup a consul Cluster.</p><p>The goal is to provide a quick and easy way to restore Vault, mainly in case of a DR, but not limited to this. The compute part of both Consul and Vault are defined in code, stored in git and can be brought back online in no time by running a single bash script for each product. Backing up Vault’s data, which is actually stored in Consul is achieved by using consul snapshot command.</p><p>As described in <a href="https://www.consul.io/docs/commands/snapshot.html">consul snapshot docs</a>, the snapshot command has subcommands for saving, restoring, and inspecting the state of the Consul servers for disaster recovery. These are atomic, point-in-time snapshots which include key/value entries, service catalog, prepared queries, sessions, and ACLs. This command is available in Consul 0.7.1 and later.</p><p>There are some utilities out there for backing-up a Consul cluster, and the best one I found so far is <a href="https://github.com/pshima/consul-snapshot">https://github.com/pshima/consul-snapshot</a> which can ship backups to AWS S3, runs as a daemon and has integrated monitoring and backup 👌. The drawback for using it , is that it cannot restore Consul ACLs 😞, which makes the restore of our Vault service slightly more complicated and a bit lengthier process. Being able to restore Consul ACLs gives the fastest and simplest restore process: bring up a new Consul cluster and then just run consul snapshot restore backup.snap: all data is restored at this point. Now just start Vault pods, unseal and this is it!</p><p>So I’ve created a Docker container called consul-backup that runs some Bash wrapper scripts which allow me to take Consul backups and has a restore functionality as well. Since Consul is a storage backend for Vault and is running on Kubernetes, this is how it all hangs together:</p><ul><li>Consul-backup pod uses <a href="https://www.vaultproject.io/docs/auth/kubernetes.html">Vault Kubernetes Auth Method</a> to obtain an initial Vault token</li><li>Use the token to authenticate against Vault using <a href="https://www.vaultproject.io/docs/auth/approle.html">AppRole Auth Method</a></li><li>Use <a href="https://www.vaultproject.io/docs/secrets/aws/index.html">AWS Secrets Engine</a> to get a dynamically generated set of AWS keys that allow access to the S3 backup bucket</li><li>Get a secret from Vault to use for encrypting the backup before pushing it to S3.</li><li>Get a Consul management token so it can used when running `consul snapshot save`. Since Consul snapshots actually contain ACL tokens, the Snapshot API requires a management token for snapshot operations and does not use a special policy.</li></ul><p>Going into details, below are the steps on how it was all set up assuming these names were used for the clusters:</p><ul><li>Kubernetes: <strong><em>kube.mydomain</em></strong></li><li>Vault: <strong><em>vault.mydomain</em></strong></li><li>Consul <strong><em>consul.mydomain</em></strong></li></ul><p>These are Vault configuration steps:</p><ol><li><strong>Configure Consul management tokens lease:</strong></li></ol><pre>vault write consul/roles/management token_type=management lease=30m</pre><p><strong>2. Configure Vault AppRole Auth Method:</strong></p><pre>vault write auth/approle/role/consul-backup \<br>secret_id_ttl=5m \<br>token_num_uses=4 \<br>token_ttl=5m \<br>token_max_ttl=5m \<br>secret_id_num_uses=1 \<br>bound_cidr_list=”10.22.88.0/23&quot; \<br>bind_secret_id=”true” \<br>policies=”consul-backup”</pre><p><em>bound_cidr_list</em> is optional and if set, specifies blocks of IP addresses which can perform the login operation.</p><p><strong>3. Create the policy for the above AppRole:</strong></p><pre>cat consul-backup.hcl<br><em>path “aws-s3-consul-backup/creds/s3-consul-backup” {<br>  capabilities = [“read”]<br>}<br>path “secret/infrastructure/consul-backup” {<br>  capabilities = [“read”]<br>}<br>path “consul/creds/management” {<br>  capabilities = [“read”]<br>}</em></pre><pre>vault policy write consul-backup consul-backup.hcl</pre><p><strong>4. Configure </strong><a href="https://www.vaultproject.io/docs/auth/kubernetes.html"><strong>Vault Kubernetes Auth Method</strong></a><strong>:</strong></p><ul><li>Enable Kubernetes Auth:<br>vault auth enable -path=kube -plugin-name=kubernetes kubernetes</li><li>Create Kubernetes certificate chain:</li></ul><pre>kubectl get secrets default-token-j3291 -o json | jq -r ‘.data[“ca.crt”]’ | base64 -D &gt; kubernetes.pem</pre><pre>openssl s_client -connect api.kube.mydomain:443 2&gt; /dev/null &lt; /dev/null | openssl x509 &gt; kubernetes-master.pem</pre><pre>cat kubernetes-master.pem kubernetes.pem &gt; kube.pem</pre><ul><li>Configure Vault to talk to Kubernetes:</li></ul><pre>vault write auth/kube/config \<br> kubernetes_host=https://api.kube.mydomain \<br> kubernetes_ca_cert=”@kube.pem`</pre><ul><li>Create a named role:</li></ul><pre>vault write auth/$cluster/role/consul-backup \<br> bound_service_account_names=consul-backup \<br> bound_service_account_namespaces=infrastructure \<br> policies=consul-backup-login \<br> ttl=300 \<br> max_ttl=300 \<br> num_uses=3`</pre><ul><li>Configure Kubernetes cluster — service Accounts used in this auth method will need to have access to the TokenReview API so create a CusterRolebinding similar to the one described in Vault documentation: <a href="https://www.vaultproject.io/docs/auth/kubernetes.html#configuring-kubernetes">https://www.vaultproject.io/docs/auth/kubernetes.html#configuring-kubernetes</a></li><li>Create Vault role defined in the above Kubernetes config:</li></ul><pre>cat consul-backup-login.hcl <br>path “auth/approle/role/consul-backup/role-id” {<br>  capabilities = [“read”]<br>}<br>path “auth/approle/role/consul-backup/secret-id” {<br>  capabilities = [“update”]<br>}<br>path “auth/approle/role/consul-backup/role-id” {<br>  capabilities = [“read”]<br>}<br>path “auth/approle/role/consul-backup/secret-id” {<br>  capabilities = [“update”]<br>}</pre><pre>vault policy write consul-backup-login consul-backup-login.hcl</pre><p><strong>5. Configure Vault AWS Secrets engine:</strong></p><ul><li>Enable AWS secrets:</li></ul><pre> vault secrets enable -path=aws-s3-consul-backup \<br> -description=”Access consul-backup S3 bucket” \<br> -default-lease-ttl=”5m” \<br> -max-lease-ttl=”5m” \<br> -plugin-name=aws aws</pre><ul><li>Configure the credentials that Vault uses to communicate with AWS to generate the IAM credentials:</li></ul><pre>vault write $path/config/root \<br> access_key=”secret_key” \<br> secret_key=”even_more_secret_key”`</pre><ul><li>Configure a role that maps a name in Vault to a policy or policy file in AWS. When users generate credentials, they are generated against this role:</li></ul><pre>vault write aws-s3-consul-backup/roles/s3-consul-backup      arn:aws:iam::1111111111111:policy/s3-consul-backup</pre><p>Now that Vault is configured and all is in place, we can go into the details of the Bash scripts used by consul-backup container. The container repo is published here: <a href="https://github.com/WealthWizardsEngineering/consul-backup">https://github.com/WealthWizardsEngineering/consul-backup</a>. It also contains a sample <a href="https://github.com/WealthWizardsEngineering/consul-backup/blob/master/k8s-cronjob.yaml">Kubernetes cronjob</a> so it can be run as a job on the cluster. consul-backup has basically 3 scripts as shown below:</p><ol><li><strong>environment.sh</strong> : as the name indicates, this one sets-up the environment by getting required secrets from Vault. It does things like:</li></ol><pre>....................................................................<br># Login to Vault and so I can get an approle token<br>VAULT_LOGIN_TOKEN=$(curl -sS --request POST \<br>  ${VAULT_ADDR}/v1/auth/${KUBERNETES_AUTH_PATH}/login \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{&quot;role&quot;:&quot;&#39;&quot;${VAULT_LOGIN_ROLE}&quot;&#39;&quot;,&quot;jwt&quot;:&quot;&#39;&quot;${KUBE_SA_TOKEN}&quot;&#39;&quot;}&#39; | \<br>  jq -r &#39;if .errors then . else .auth.client_token end&#39;)<br>....................................................................<br>export GPG_PHRASE=$(curl -sS --header &quot;X-Vault-Token: ${APPROLE_TOKEN}&quot; \<br>    ${VAULT_ADDR}/v1/secret/infrastructure/${VAULT_LOGIN_ROLE} | \<br>    jq -r &#39;if .errors then . else .data.gpg_phrase end&#39;)</pre><pre>export CONSUL_HTTP_TOKEN=$(curl -sS --header &quot;X-Vault-Token: ${APPROLE_TOKEN}&quot; \<br>    ${VAULT_ADDR}/v1/consul/creds/management | \<br>    jq -r &#39;if .errors then . else .data.token end&#39;)</pre><pre>....................................................................<br></pre><p>2. <strong>backup.sh</strong> : it’s quite obvious what it does, and thanks <a href="https://medium.com/u/c4ffd37d5a">Rich Marshall</a> for adding InfluxDB events and a status on our <a href="https://medium.com/ww-engineering/backups-are-fun-b91f17dccc8e">current backup monitoring tool of choice</a>. Here is the script:</p><pre>#!/bin/bash -e</pre><pre>unset_vars() {<br>  unset GPG_PHRASE<br>  unset CONSUL_HTTP_TOKEN<br>  unset ACCESS_KEY<br>  unset SECRET_KEY<br>}</pre><pre>clean_environment(){<br>  rm -f consul-backup-*.snap<br>  rm -f /tmp/tmpfile-*<br>  unset_vars<br>}<br>trap clean_environment EXIT</pre><pre>BACKUP_FILE=&quot;consul-backup-$(date +&quot;%H-%M-%S&quot;).snap&quot;<br>S3_BACKUP_DIR=&quot;$(date +&quot;%Y&quot;)/$(date +&quot;%m&quot;)/$(date +&quot;%d&quot;)&quot;</pre><pre># Define where and how to send events to influx<br>POST2INFLUX=&quot;curl -XPOST --data-binary @- ${INFLUXDB_URL}&quot;</pre><pre># Get CONSUL_HTTP_TOKEN, GPG_PHRASE, ACCESS_KEY and SECRET_KEY<br>source /environment.sh</pre><pre># Backup consul<br>echo &quot;Using CONSUL_HTTP_ADDR: ${CONSUL_HTTP_ADDR}&quot;<br>echo &quot;Running consul snapshot save&quot;<br>echo -n &quot;instance_backup_started,instance=consul value=true&quot; | ${POST2INFLUX}<br>echo -n &quot;database_backup_started,instance=consul,database=consul_kv value=true&quot; | ${POST2INFLUX}<br>consul snapshot save ${BACKUP_FILE} || { echo &quot;instance_snapshot_failed,instance=consul value=true&quot; | ${POST2INFLUX} &amp;&amp; exit 1; }<br>echo &quot;database_backup_completed,instance=consul,database=consul_kv value=true&quot; | ${POST2INFLUX}</pre><pre># Inspect the backup<br>consul snapshot inspect ${BACKUP_FILE} || { echo &quot;instance_inspect_failed,instance=consul value=true&quot; | ${POST2INFLUX} &amp;&amp; exit 1; }</pre><pre># Push to S3<br>echo -n &quot;database_s3-put_started,instance=consul,database=consul_kv value=true&quot; | ${POST2INFLUX}<br>s3cmd put  ${BACKUP_FILE} s3://${S3_BUCKET}/${S3_BACKUP_DIR}/${BACKUP_FILE} || { echo &quot;instance_s3-put_failed,instance=consul value=true&quot; | ${POST2INFLUX} &amp;&amp; exit 1; }<br>echo -n &quot;database_s3-put_completed,instance=consul,database=consul_kv value=true&quot; | ${POST2INFLUX}<br>echo -n &quot;instance_backup_completed,instance=consul value=true&quot; | ${POST2INFLUX}</pre><p>3. <strong>restore.sh</strong> : it expects a brand new Consul cluster to restore to. It warns the user about the restore impact, asks for confirmation and if answered ‘yes’ it proceeds with the restore. The restore is a full restore, and most likely needed in a full DR scenario, but it can also be used for selective restore by doing a full restore to a new Consul instance followed by consul kv export and consul kv import . The important bits of the restore script are:</p><pre>....................................................................<br>Yes )<br>   s3cmd get s3://$S3_BUCKET/$REMOTE_FILE_PATH $LOCAL_FILE<br>   echo &quot;&quot; &amp;&amp; echo &quot;Inspecting the backup&quot;<br>   <strong>consul snapshot inspect $LOCAL_FILE</strong></pre><pre>   echo &quot;Performing the restore&quot;<br>   <strong>consul snapshot restore $LOCAL_FILE</strong></pre><pre>   break<br>   ;;</pre><pre>No )<br>   break<br>   ;;<br>....................................................................</pre><p>And… this is it! Bash to the rescue 👍!! Now this approach is specific for the use case described at the beginning of this article but it shows how you can quickly add some bash wrapper scripts around consul snapshot command and create something fit for your purpose when needed. Happy scripting!!</p><p>Ps. below diagram shows the relations between Vault Kubernetes Auth AppRole, Vault role and AWS secrets engine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bcgoAnJ-oZ-X2qiNtzLQRw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=503dc3332b76" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ww-engineering/consul-snapshot-vault-kubernetes-503dc3332b76">Backup a Consul cluster using `consul snapshot` command</a> was originally published in <a href="https://medium.com/ww-engineering">Wealth Wizards Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sufficient, Good, Great]]></title>
            <link>https://medium.com/ww-engineering/sufficient-good-great-66c53265b4aa?source=rss-685fdbc94128------2</link>
            <guid isPermaLink="false">https://medium.com/p/66c53265b4aa</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Ionut Craciunescu]]></dc:creator>
            <pubDate>Wed, 18 Apr 2018 20:23:33 GMT</pubDate>
            <atom:updated>2018-04-19T07:27:57.352Z</atom:updated>
            <content:encoded><![CDATA[<p>Get things done quickly, don’t over-engineer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*_KXR9te5AGIdaj99OlRNaQ.jpeg" /></figure><p>One of the principles that we embrace at Wealth Wizards is called “Sufficient, Good, Great”. It’s one of the supporting elements to evaluate what work needs to be done from a feature delivery point of view. It also helps in our delivery processes with getting things done quickly and to know if and when the work done meets requirements, over delivers on future needs or is simply over-engineered.</p><p>Following this principle, the work that I do always needs to meet current requirements, which is similar to doing “sufficient”. Doing “sufficient” can be equivalent to an MVP in some cases, but if I just need to create a bash script then having “sufficient, good, great” in mind is more practical than thinking in the context of an MVP.</p><p>I must admit, it took me some time to put it to good use. I don’t know why, but in the back of my mind “sufficient” was somehow related to a lesser quality of the work being done. I was just a bit wrong :) … “Sufficient, good, great” is not a scale for quality. We always strive to do work of the highest quality. As mentioned previously is a way to evaluate what work needs to be done from a feature delivery point of view.</p><p>I’d say a good explanation of “sufficient” is : it answers current requirements and represents the minimum amount of work needed to deliver on it while maintaining quality standards. “Good”, obviously must be an improvement over “sufficient” and brings in more features while “great” can be labeled as “problem solved” in a specific area. As briefly touch on before, one might say that “sufficient” is just another way of saying MVP, which is true in some cases. But in many contexts like writing some scripts, updating your deployment pipeline, writing a new microservice, changing the authentication mechanism in our application stack or even working on a single story it helps focusing on the important bits. Is what I’m doing “sufficient” for the goal I’m trying to achieve or I’m over engineering?</p><p>Of course things are evolving in time, and as improvements take place (everyone does that, isn’t it?!?!) and what is “sufficient” today can no longer be like that tomorrow, or what is “good” or “great” now might become “sufficient” tomorrow.</p><p>Depending on the context, sometimes doing “sufficient” is not enough and we go for “good” or “great”. We discuss and analyze quite often to what level the work we do needs to be, we take a decision and make it happen.</p><p>There are situations where we go for “good” or “great” based on the context. One example is related to infrastructure pipeline: we want our infrastructure to “just be there” if and when needed and in the desired shape and size so we don’t have to worry about it so we can focus on more valuable things like writing code and shipping it to production. In this case, the infrastructure pipeline can be created so it answers current and future needs for the next couple of quarters (or a year maybe), have it fully automated and in source control. This takes it way beyond “sufficient”, maybe it’s even “great” and you might get a solid DR as an additional bonus. Sure, there is a longer initial investment when you go for “good” or “great”, but sometimes is better to go slower now so you can go faster in the future.</p><p>We use “sufficient, good, great” quite a lot in our day to day work, to the extent that some work was done around application logging and one of the developers working on it asked:”Have we solved this? Sufficient, Good Great”.</p><p>To make an analogy, if you’re into mountain-biking and and do a mix of cross-country and all-mounting, than a hardtail bike from a known brand is “sufficient”. If you start hitting the bike parks were taking the uplift is the norm then a full-sus bike is “good”. And then, if you regularly do black runs and even more difficult ones at bike parks like the ones in the Alps, then a bike similar to what people in <a href="https://youtu.be/jcRPIu1t_js?t=562">EWS</a> are using is “great”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66c53265b4aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ww-engineering/sufficient-good-great-66c53265b4aa">Sufficient, Good, Great</a> was originally published in <a href="https://medium.com/ww-engineering">Wealth Wizards Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Achievement unlocked!]]></title>
            <link>https://medium.com/ww-engineering/achievement-unlocked-1fc25b383435?source=rss-685fdbc94128------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fc25b383435</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[kops]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[go]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Ionut Craciunescu]]></dc:creator>
            <pubDate>Sat, 03 Mar 2018 19:03:29 GMT</pubDate>
            <atom:updated>2018-04-05T10:42:05.299Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/195/1*fkvmRST3AlcmZL-DHhG7pA.png" /></figure><h4>Contribute to an open source project — write code</h4><p>One might ask whats the big deal about this (write code for an open source project)? There are so many people doing it and in many environments is actually the norm. But here’s the thing: for a long time I’ve been working with ‘enterprise’ products and open source was simply not in scope. That’s not to say that open source projects are not enterprise ready, but in a more traditional way, what used to be seen as enterprise software was not open source. And one more thing: my life in IT started as a pure operations guy, I had to do little to no development (or scripting) in my early years.</p><p>Late May, last year I joined a great start-up called Wealth Wizards. Few weeks after I joined, I was working on getting our Kubernetes clusters fully defined in code, automate deployments and have an infrastructure pipeline defined. After few discussions with colleagues I started using <a href="https://github.com/kubernetes/kops">Kops</a> to deploy our cluster in AWS. One of our requirements is to use provisioned IOPS for root disks for cluster nodes.</p><p>There was an option in Kops — rootVolumeType: and this could be set to io1 (default is gp2), but doing so resulted in:</p><p>W0825 17:39:46.585143 87752 executor.go:109] error running task &quot;LaunchConfiguration/nodes.xxxxxxxxxxxxxx&quot; (7m16s remaining to succeed): error creating AutoscalingLaunchConfiguration: ValidationError: Iops is required for a provisioned IOPS volume. Bummer!</p><p>I had a quick chat with Richard about this and he asked: “But surely you can fix it?!?”. I took on the challenge!</p><p>Part of my regular tasks in my job is not necessarily to write code. I do work in a DevOps environment and do loads of infrastructure as code these days, but I don’t consider myself a person with software developer skills. Anyway, I was feeling energized so I cloned the git repo and started to read the codebase. Luckily its well structured and Kops is written in Go. It was my first ‘real’ experience with Go, but I found it easy to read and managed to figure it out what I could do to make it work. I spent a bit of time familiarizing myself with Go, and after few hours I added some code that I thought will do the trick. I built it locally, ran a first test, it failed, made few other changes and after few other attempts I managed to have a working solution! I was able to deploy a Kubernetes cluster with an instance group using provisioned IOPS for root disk! And quite surprisingly for myself, it took me less than half a day to come with a first working solution.</p><p>I submitted a pull request, being a bit afraid of comments and possible mistakes in my code, but surprisingly the review process was just smooth, didn&#39;t had to rewrite code and it got merged in the master branch.<br>Boy it felt so good!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fc25b383435" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ww-engineering/achievement-unlocked-1fc25b383435">Achievement unlocked!</a> was originally published in <a href="https://medium.com/ww-engineering">Wealth Wizards Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>