<?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 Amit Das on Medium]]></title>
        <description><![CDATA[Stories by Amit Das on Medium]]></description>
        <link>https://medium.com/@amit.das?source=rss-b5d888ed5889------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JDbUKvkkRU2AROCLIosE7w.jpeg</url>
            <title>Stories by Amit Das on Medium</title>
            <link>https://medium.com/@amit.das?source=rss-b5d888ed5889------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:04:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amit.das/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[Kubernetes Controllers — Origins]]></title>
            <link>https://medium.com/@amit.das/kubernetes-controllers-origins-f8d3257da9a1?source=rss-b5d888ed5889------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8d3257da9a1</guid>
            <category><![CDATA[operatör]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[controller]]></category>
            <dc:creator><![CDATA[Amit Das]]></dc:creator>
            <pubDate>Wed, 11 Sep 2019 04:48:51 GMT</pubDate>
            <atom:updated>2019-09-11T05:19:43.450Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kubernetes Controllers — Origins</h3><h3><strong><em>Motivation</em></strong></h3><p>This is part of the series of articles that helps us to achieve the following:</p><blockquote>- Understand Kubernetes (K8s) controllers<br>- Learn various K8s controller implementations<br>- Write K8s controller(s)</blockquote><p><em>This first appeared in </em><a href="https://github.com/AmitKumarDas/Decisions/issues/221">Decisions#221</a></p><h3>Kubernetes Controllers — A Primer</h3><p>Let us try to refresh our understanding on Kubernetes (K8s) controllers before trying to dig deep into any specific controller(s). A Kubernetes controller is a logic that tries to move the Kubernetes cluster into some desired state. However, there can be so many desired states due to the needs of various components, applications, etc running on Kubernetes. Hence, Kubernetes provides us with the ability to define a particular desired state in form of a specifications <em>(infamous yaml file)</em>. A specifications is a well defined schema that can be even used as a payload to a particular endpoint <em>(CRUD operation)</em> of the Kubernetes API Server.</p><p>While designing applications to run on Kubernetes, it is important to define a desired state that tries to handle a single responsibility. One can always define multiple desired states <em>(hereafter referred to as specifications)</em> to achieve the entire requirement or workflow. If we are able to adhere to clean separation of responsibilities via distinct specifications, we can depend on Kubernetes to solve other additional concerns like infrastructure, security, deployment, self-heal, and many more.</p><p>All these while, we have been talking about good practices to design a Kubernetes API. Let us talk a bit about the specifics of Kubernetes controllers. What are they? This is the logic that corresponds <em>(code-behind) </em>to the API(s). However, this is more aligned to write logic in a way Kubernetes wants us to. One can even consider this as a framework or pattern if that aligns with your mental model. As per Kubernetes docs itself, its controller <em>(implementation)</em> is a <strong><em>reconciliation</em></strong> process that runs continuously to merge the current state in Kubernetes to its desired state in Kubernetes. Since this is a continuous loop, an user <em>(or tool)</em> can keep updating the desired state <em>(by making changes to the specifications)</em> and let this reconciliation logic realise this state.</p><h3>Summary</h3><p>In this article, we got to know about Kubernetes controllers and how they are based on continuous reconciliation of observed state to desired state. One should note that this is just the tip of the iceberg as we learn more from this series on “<strong><em>Kubernetes Controllers</em></strong>”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8d3257da9a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thinking in Types]]></title>
            <link>https://medium.com/@amit.das/thinking-in-types-3c234eb17680?source=rss-b5d888ed5889------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c234eb17680</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[go]]></category>
            <category><![CDATA[functional-programming]]></category>
            <dc:creator><![CDATA[Amit Das]]></dc:creator>
            <pubDate>Wed, 24 Oct 2018 06:34:31 GMT</pubDate>
            <atom:updated>2018-10-24T07:16:26.070Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of us <em>(developers)</em> have been introduced to the concept of programming via books or our own experience. It is more than likely some of us would have heard about Object Oriented Programming (OOPs). The essence of OOPs is all about constructing objects by analysing software requirements in terms of real world objects.<br><br><strong>Need to move beyond **<em>thinking in nouns to construct objects**</em> ?</strong><br>We have often heard of nouns becoming programmable objects &amp; the behaviours of these objects turn into methods or functions. Theory aside, if we conform to these OOPs essentials, does it ease our programming logic? Does this mean this logic will be understood by all its readers <em>(read reviewers, fellow maintainers)</em>? Can we be assured of a good maintenance of this software?<br><br><strong>Loops &amp; Conditions Rule The Roost</strong><br>Take any programming logic from any real world software and more often than not, you will find yourselves navigating through its loops and if else branches. <em>Does OOPs have anything to talk about loops &amp; branches?</em> <em>How about modelling these loops and conditions into defined types?</em> Yes, I am referring to collections here. However, I am not talking about arrays or maps. <strong><em>I am indicating to make a collection of these objects as first class citizens similar to the object itself.</em></strong> Let us look at a piece of code to understand further.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/74487672e87ac5a79ebfd9f7b88b5752/href">https://medium.com/media/74487672e87ac5a79ebfd9f7b88b5752/href</a></iframe><p><strong>Does above make any difference?</strong><br>The difference in above thought process is what this article is all about. The very approach of modelling collections as custom types makes a lot of difference. It makes your software simple yet effective. In my opinion this is the foundation to build software that can be better maintained, is easy to unit test, and is easy to extend without injecting bugs.<br><br><strong><em>How can we be so sure of above&#39;s advantages?</em></strong><br>We talked about considering the collections of objects as typed objects. To understand the full benefits, let us park collections for a moment and try to think about conditions. <br><br>In general, when we hit a conditional requirement, we developers start to write <strong><em>if else</em></strong> clauses. This is one of the shortest keywords in any programming language that creates wonder. I bet a condition based keyword will have more occurrences than that of loops. Getting back to our mode of thinking in objects, <strong><em>can these conditions be treated as first class citizens</em></strong>? In other words should we define custom type to represent a condition?<br><br>In my opinion, solution lies in composing these collection types along with conditional types to arrive at writing logic that is very effective and yet is simple to maintain.<br><br><strong>Creating your own conditionals i.e. custom type to represent a condition</strong><br>Why? This ensures decoupling conditions from loop based logic <em>(Remember that we have also tried to move the loops into custom defined types i.e. collection types).</em> Let us resort to some code samples to understand better.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/21d66de145c68e748b3873aeb1c0f5a3/href">https://medium.com/media/21d66de145c68e748b3873aeb1c0f5a3/href</a></iframe><p>Above tries to model a simple storage related requirement by considering collection based objects &amp; conditional objects.<br>With similar core pieces in place, we can venture to stitch together (read permutations &amp; combinations) of complex requirements that will be easy to code and maintain and even unit test.</p><blockquote>A production example can be found <a href="https://github.com/openebs/maya/pull/726">here</a> in <a href="https://github.com/openebs/maya">maya</a> (one of <a href="https://openebs.io/">openebs</a> projects).</blockquote><p><strong><em>Conclusion</em></strong><br>It is all about <strong>**thinking in types**</strong>. Some may view above as functional approach as well. However, the core idea of thinking in terms of specific structures, functions or objects in addition to language provided keywords like `<em>for loop</em>`, `<em>switch case</em>` conditions, etc can help us in getting some amazing stuff done with a maintainable code base. <br><br><strong><em>We are all familiar with `sort` Interface</em></strong><br>- How about implementing sort.Interface to sort the storage collections !!!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d0093b31b8b2d77e17791a2a7812bf8/href">https://medium.com/media/8d0093b31b8b2d77e17791a2a7812bf8/href</a></iframe><p><em>NOTE</em>: Most of the projects seem to use a custom list to implement `sort` interface. <br><em>NOTE</em>: It could be great if these projects look beyond supporting sort &amp; start using it to build domain logic as well.<br><br><strong><em>Ever thought of building custom operators as well ?</em></strong><br>How about requirements driving us to implement various operators on top of collections &amp; conditions? e.g. `<strong><em>or</em></strong>`, `<strong><em>eq</em></strong>`, `<strong><em>ne</em></strong>`, `<strong><em>gt</em></strong>`, `<strong><em>lt</em></strong>`, and so on.<br><br><strong><em>Fun Side</em></strong><br>I tend to call above as <strong><em>**first-class domain types**</em></strong>. A jargon that will obviously be misinterpreted. Hence this article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c234eb17680" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do I pin the OpenEBS Replica Pod(s) to the Kubernetes Nodes where they were scheduled?]]></title>
            <link>https://medium.com/openebs/how-do-i-pin-the-openebs-replica-pod-s-to-the-kubernetes-nodes-where-they-were-scheduled-2ba42e3015df?source=rss-b5d888ed5889------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ba42e3015df</guid>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[how-do-i]]></category>
            <category><![CDATA[solutions]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[openebs]]></category>
            <dc:creator><![CDATA[Amit Das]]></dc:creator>
            <pubDate>Mon, 26 Mar 2018 03:44:29 GMT</pubDate>
            <atom:updated>2018-03-26T03:44:29.177Z</atom:updated>
            <content:encoded><![CDATA[<p>This article belongs to #HowDoI series on Kubernetes and OpenEBS.</p><p>A OpenEBS Volume comprises of a Controller pod and one or more Replica pod(s). Controller pod (also known as a Target pod) is the one to which the application can make an iSCSI connection. The Replica pods are the ones that access the underlying disk resources for storing the data.</p><blockquote><strong><em>Use Case #1:</em></strong><em> In my Kubernetes cluster, </em><a href="https://blog.openebs.io/how-do-i-configure-openebs-to-use-storage-on-specific-kubernetes-nodes-361e3e842a78"><strong><em>OpenEBS volume pods are scheduled on appropriate nodes</em></strong></a><em>. This is all fine till the cluster experiences a disruption due to network partition. Kubernetes tries to evict &amp; re-schedule these volume pods into newer nodes that does not have the underlying data. This results in volume getting into offline state. I want the OpenEBS volume pods to stick to the nodes they were originally placed.</em></blockquote><blockquote><strong><em>S</em>olution</strong>: Patch the Replica deployment with <strong>nodeAffinity</strong> property</blockquote><p>As per Kubernetes docs, nodeAffinity allows you to constrain which nodes your pod is eligible to be scheduled on. It is based on labels on the node.</p><p>There are currently two types of node affinity:<br>- `<strong><em>requiredDuringSchedulingIgnoredDuringExecution</em></strong>` &amp;<br>- `<strong><em>preferredDuringSchedulingIgnoredDuringExecution</em></strong>`</p><p>These node affinity types can be thought of “<em>hard</em>” vs. “<em>soft</em>” affinity respectively.</p><ul><li><em>Hard </em>affinity states that pod will be scheduled only if the conditions are met.</li><li><em>Soft</em> affinity implies Kubernetes will make a best effort but the affinity may not be guaranteed.</li></ul><p>We shall make use of `<em>hard affinity`</em> as this fits perfectly to the needs of Replica deployment.</p><p>Steps required to patch the Replica deployment are summarised below:</p><blockquote><strong><em>Step 1</em></strong><em>:-</em> Replica pod(s) gets scheduled by Kubernetes default scheduler (via OpenEBS provisioner — a dynamic Kubernetes storage provisioner)<br><strong><em>Step 2</em></strong><em>:- Wait till r</em>eplica pod(s) get into `Running` state<br><strong><em>Step 3</em></strong><em>:-</em> Operator determines the node(s) on which the replica pod(s) are scheduled<br><strong><em>Step 4</em></strong><em>:-</em> Replica deployment is patched with nodeAffinity</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/595747cab079c3eb9d896aa1ba84ace4/href">https://medium.com/media/595747cab079c3eb9d896aa1ba84ace4/href</a></iframe><p>Learn more about nodeAffinity from Kubernetes docs at <a href="https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity">https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity</a>. If you want to understand more on kubectl patch operation, then go through <a href="https://kubernetes.io/docs/tasks/run-application/update-api-object-kubectl-patch/">https://kubernetes.io/docs/tasks/run-application/update-api-object-kubectl-patch/</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ba42e3015df" width="1" height="1" alt=""><hr><p><a href="https://medium.com/openebs/how-do-i-pin-the-openebs-replica-pod-s-to-the-kubernetes-nodes-where-they-were-scheduled-2ba42e3015df">How do I pin the OpenEBS Replica Pod(s) to the Kubernetes Nodes where they were scheduled?</a> was originally published in <a href="https://medium.com/openebs">OpenEBS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do I configure OpenEBS to use storage on specific Kubernetes nodes?]]></title>
            <link>https://medium.com/openebs/how-do-i-configure-openebs-to-use-storage-on-specific-kubernetes-nodes-361e3e842a78?source=rss-b5d888ed5889------2</link>
            <guid isPermaLink="false">https://medium.com/p/361e3e842a78</guid>
            <category><![CDATA[solutions]]></category>
            <category><![CDATA[openebs]]></category>
            <category><![CDATA[how-do-i]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Amit Das]]></dc:creator>
            <pubDate>Sun, 18 Mar 2018 13:27:20 GMT</pubDate>
            <atom:updated>2018-12-14T07:37:55.692Z</atom:updated>
            <content:encoded><![CDATA[<p>This article belongs to <strong>#HowDoI</strong> series on <a href="https://kubernetes.io/"><strong>Kubernetes</strong></a> and <a href="https://openebs.io/"><strong>OpenEBS</strong></a>.</p><blockquote>Note: The approach mentioned in this article applies for OpenEBS version 6.0 or below. One can refer to this <a href="https://github.com/openebs/community/pull/20">link</a> for OpenEBS version 0.8.0 and above.</blockquote><p>A OpenEBS Volume comprises of a Target pod and Replica pod(s). There can be one or more Replica pods. The Replica pods are the ones that access the underlying disk resources for storing the data.</p><blockquote><strong>Use Case #1: </strong>In my Kubernetes Cluster, I have certain nodes that have disks attached. I call these as Storage Nodes. I want the OpenEBS Volume Replica Pods to be scheduled on these Storage Nodes.</blockquote><blockquote><strong><em>Solution:</em></strong> Use Kubernetes “taints &amp; tolerations” feature.</blockquote><p>As per Kubernetes docs, taints allow a node to repel a set of pods. Taints and tolerations work together to ensure that pods are not scheduled onto inappropriate nodes.</p><ul><li>You can apply `<em>NoSchedule</em>` &amp; `<em>NoExecute</em>` taints to the node(s).</li><li>`<em>NoSchedule</em>` marks that the node should not schedule any pods that do not tolerate the taint.</li><li>`<em>NoExecute</em>` marks that the node should evict existing/running pods that do not tolerate this taint.</li><li>Tolerations are applied to pods, and allow the pods to get scheduled onto nodes with matching taints.</li><li>You need to set an ENV variable in maya API server Deployment specifications, which in turn ensures setting of above tolerations on the replica pods.</li><li>The ENV variable referred to here is `<em>DEFAULT_REPLICA_NODE_TAINT_TOLERATION</em>`</li></ul><p>Following are the instructions to do the same:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/11e0d2314f6a8e33360ca5d075c3212c/href">https://medium.com/media/11e0d2314f6a8e33360ca5d075c3212c/href</a></iframe><blockquote><strong>Use Case #2:</strong> In my Kubernetes Cluster, I have certain nodes that have disks attached. I call these as Storage Nodes. I want the OpenEBS Volume Replica Pods to be scheduled on these Storage Nodes. In addition, I want a better utilisation of these nodes by being able to schedule my application Pods on these nodes as well.</blockquote><blockquote><strong>Solution:</strong> Use Kubernetes taints &amp; tolerations feature. You may also want to try with `nodeAffinity` to achieve this. However, this solution focuses on use of tolerations.</blockquote><ul><li>You need to make use of `<em>PreferNoSchedule</em>` as the taint effect.</li><li>This can be thought of as a <em>soft version</em> of `<em>NoSchedule</em>`.</li><li>In other words the system tries to avoid placing a pod that does not tolerate the taint on the node, but it is not mandatory.</li></ul><p>Following are the instructions to do the same:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ac47524847cb6ab01ae5afc3915ee1ae/href">https://medium.com/media/ac47524847cb6ab01ae5afc3915ee1ae/href</a></iframe><p>If you want to learn more on taints &amp; tolerations, then go through <a href="https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/">https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/</a></p><p>I shall strive to put more such articles in future. Do let me know if you want any specific topics that I should explain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=361e3e842a78" width="1" height="1" alt=""><hr><p><a href="https://medium.com/openebs/how-do-i-configure-openebs-to-use-storage-on-specific-kubernetes-nodes-361e3e842a78">How do I configure OpenEBS to use storage on specific Kubernetes nodes?</a> was originally published in <a href="https://medium.com/openebs">OpenEBS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Storage Policies — It’s different this time !!!]]></title>
            <link>https://medium.com/openebs/storage-policies-its-different-this-time-395bbff899ee?source=rss-b5d888ed5889------2</link>
            <guid isPermaLink="false">https://medium.com/p/395bbff899ee</guid>
            <category><![CDATA[updates]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[storage-policy]]></category>
            <dc:creator><![CDATA[Amit Das]]></dc:creator>
            <pubDate>Thu, 30 Nov 2017 05:17:11 GMT</pubDate>
            <atom:updated>2018-03-22T06:57:31.773Z</atom:updated>
            <content:encoded><![CDATA[<h3>Need for Storage Policy</h3><p>One of the most common disbelief at the operator’s end would be the reports of an application’s (<em>that consumed this storage</em>) sudden death after introducing a much awaited shiny new storage feature. To make things worse the same surprise would be reciprocated from the storage provider as well. Neither the operator nor the storage fellow have any clues to this sudden strangeness.</p><p>Having gone through many such cycles of frustrations building storage features that satisfy the needs of every operator as well does not break stuff that are outside its control; I knew there was clearly a gap in storage design that needs to be talked about openly and bridged. In this article, I present storage policy as the solution to this pressing problem.</p><p>The moment I think about conceptualising storage policy, my mind tries to battle against many odds. <em>Is this not what everyone (read storage vendors) has accomplished?</em></p><p><strong>Think again!!!</strong> The chances are, it works for a specific storage <strong>“A”</strong> and needs a radically different approach for the other storage <strong>“B”</strong>; assuming both of these provide the infrastructure for the operator’s storage needs. So the operator goes ahead and does some plumbings if lucky enough to get these infrastructures as white-box components. <em>At the end of the day the operator is ready with a new bespoke program and feels so lucky</em>. Whatsoever, this does not last long due the very behaviour of infra components. <em>This operator needs to be ready all the time for the next upgrade to above crafted program,</em> <em>since little can be expected from the monolith storage fellas</em>. <em>Poor operator is left to fend for self, building all possible defence mechanisms</em>.</p><p>Getting back to the need for a storage policy; <em>what is the edge in this incarnation of storage policy then</em>? Well, it is all about capitalising the essential features that being native to cloud and being operated from within a container provides <em>(I can only hope and pray for those storage controllers who cannot operate from the cloud(s) or can not be run from within the container(s))</em>.</p><p>Having said that, there is no innate need to design storage policy that is drastically different just to prove its greatness. Instead there is a need to design, build, and apply policies that is agnostic to a storage implementation and is conducive to storage operations that are never ever meant to be interrupted.</p><blockquote>1. A Storage Policy should be simple to setup on Day 0,</blockquote><blockquote>2. It should be simple to expect the obvious on Day 1,</blockquote><blockquote>3. It should be simple enough to build an update whenever desired.</blockquote><h3>Is it that simple ?</h3><p>All this time, I have been describing the storage policy and its operations <br>as simple. <em>Well, they can be described as simple, but not easy</em>. What was your feelings when you created one last time? <em>Have you ever felt creating a storage snapshot policy is easy?</em> How about a policy that does periodic restore<br>of some randomly picked snapshots and marks them as <em>PASSED</em> or <em>FAILED</em> after verifying its data integrity. How did that failure alert you? Was it a slack notification? To make it further interesting, can you think of a snapshot policy that hooks into its consuming application’s life cycle events before trying out the snapshot (<em>Yes!!! I am suggesting those ‘freeze’ and ‘thaw’ exploits before and after a snapshot</em>).</p><blockquote><strong>Policies can be described as simple, but not easy.</strong></blockquote><p>Remember, these are not the only policies that can be thought of with respect to storage (<em>we have not even scratched the storage surface</em>). While all of these are achievable in a cloud and container native way, they may not be termed as easy.</p><p>Applying storage policies is like a dangerous yet interesting sport. Like rock climbing, building a suitable policy can be learnt and then adapted based on the needs, workloads, environment, and so on. However, these policies if applied incorrectly can create a ripple-effect that can lead to increased costs and SLA misses which in turn leads to more support personnel on duty, and so on. As we read further, this new design of storage policies helps in eliminating the aforementioned impacts.</p><h3>Bring your own YAML</h3><p>Did I just say YAML ? Yes I did and I shall explain it in a moment. Let us first explore the possible design angles of a storage policy. <em>Will it not be great to design a policy that fits well within an enterprise’s existing processes, its employees, its culture, its tools?</em> Is this too much to ask for?</p><p>No!!! <em>These are no more a set of good to have features but a must have checklist.</em> I believe expressing storage policy intents as YAMLs can pass all possible checks in an enterprise’s checklist. These current generation declarative intents are now fluent enough to be understood by APIs. In addition, one of YAML’s greatest strengths is its ability to abstract the entire logic that most of us understand as programmable code. This code now becomes truly yours since you have full control of these YAMLs. In other words, it is the operators who have the controlling rights.</p><p>To reiterate, there are few but really solid facts that makes this approach towards policy design a much better one than that of all its predecessors.</p><p><strong><em>Here are my bets that makes this design different</em></strong><em>:</em></p><blockquote><strong><em>Fact #1</em></strong> — To put things into perspective, the unassuming reader needs to look at the storage policies along with the current trends in cloud infrastructure as well as the trends in container engine. The cloud has of late become seamless. Thanks to Kubernetes which has been continuously bridging the impedance mismatch between different cloud providers. In addition, the communities involved in Container Storage Initiative, Container Runtime Interface, etc. are making intents as first class citizens. These declarative code pieces are thought of in a bottoms-up approach in each of these implementations which are then placed together coherently by the likes of Kubernetes. Now this is what is definitely more effective than just a tool that parses YAML and runs in isolation.</blockquote><blockquote><strong><em>Fact #2</em></strong> — These intents are precise and parsed with appropriate validation checks to state with decisive control on the exact outcome. In other words they control the actual execution logic in addition to accepting input values via its declarative specifications. This grounds-up approach coupled with the nativity towards cloud as well as container engine is more suited to design storage policies that align with modern day DevOps’ practices.</blockquote><blockquote><strong><em>Fact #3</em></strong> — Let us not forget the containers and the critical role they play in this age of cloud and orchestrators. Perhaps containers have become so ubiquitous and hence are easy to miss. I truly feel there are umpteen number of cool things that are yet to be discovered when we run a storage controller inside a container.</blockquote><blockquote><strong>Fact #4</strong> — All these also mean the intents that were once the sole prerogative of humans can now be built and operated by machines as well. This too with the same ease that the humans used to enjoy. After all, the ingredients <em>(#1, #2 and #3)</em> to make this possibility are all in place. This has come of age and is really an advancement in my opinion.</blockquote><blockquote>Bringing your own YAML really means setting your own policies and having complete control over their execution as well.</blockquote><h3>Use the tool(s) you always loved</h3><p>A policy alone cannot justify its existence unless it is complimented with simple tools and automated processes. The careful reader might have already guessed it. Yes, I am talking of aligning storage policies with DevOps to realise its full potential.<br> <br><em>Making storage policies more visible, more obvious, and enabling them to the enterprise’s established processes will make them simple to be believed and instil the faith to operate</em>. <em>Once again, there is a learning involved but the curve is not steep</em>.</p><p>These policies should offer finest levels of control to the operators’ tools, their bots and of-course operators themselves when such a need arises. <em>For example finer granularity is craved for during rollbacks, automated downgrades or blue green deployments which are not uncommon in the world of storage infrastructures.</em></p><p>To complete the DevOps cycle, these policies which can be hand crafted or system generated can be submitted to the approver(s) (<em>which again can be a combination of humans as well as their loved tools</em>) as Pull Requests before being installed and applied against the storage.</p><h3>Storage was the proverbial “Missing Cog”</h3><p>We are seeing users finally achieving what many have dreamt of for so long — <strong><em>storage</em></strong> <em>(and the rest of the infrastructure)</em> truly being driven by the needs of the application and in a way that remains understandable and for a variety of reasons <em>(take infra as code for example)</em> trusted by humans. And now increasingly we see the recognition that containerised storage itself is another important ingredient.</p><p>Thanks to <a href="http://openebs.io/">OpenEBS</a> and more broadly containerised storage. <em>For the first time every team and workload can have its </em><strong><em>own fully functional storage controller</em></strong>, with capabilities that have always been required by enterprise storage systems and that are still useful in taking care of <em>stateful workloads</em>. Our users do not want to give up the tools they used for the care and feeding of MySQL for example just because it now runs in a container. <em>This is possible by enabling capabilities like snapshots, versioning, encryption and more </em><strong><em>as knobs</em></strong><em> to be able to be turned on/off for each workload.</em></p><p>This incarnation of storage policies make it easy for many procedures for these workloads to be recorded as YAML; <em>the run book is truly code and so can easily be shared, versioned, and executed without humans having to play a role in the ugly details of managing storage system </em><strong><em>A</em></strong><em> or </em><strong><em>B</em></strong><em> or even </em><strong><em>C</em></strong>. <em>Storage fades into the background.</em><strong><em> </em></strong><em>Time is ripe for the operators to rule.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=395bbff899ee" width="1" height="1" alt=""><hr><p><a href="https://medium.com/openebs/storage-policies-its-different-this-time-395bbff899ee">Storage Policies — It’s different this time !!!</a> was originally published in <a href="https://medium.com/openebs">OpenEBS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build an e2e ?]]></title>
            <link>https://medium.com/openebs/how-to-build-an-e2e-b76e953af222?source=rss-b5d888ed5889------2</link>
            <guid isPermaLink="false">https://medium.com/p/b76e953af222</guid>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[featured]]></category>
            <category><![CDATA[e2e-testing]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cloud-storage]]></category>
            <dc:creator><![CDATA[Amit Das]]></dc:creator>
            <pubDate>Wed, 18 Oct 2017 03:31:04 GMT</pubDate>
            <atom:updated>2018-03-22T07:06:52.510Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is e2e ?</strong></h3><p>Well <em>e2e</em> which expands into end to end speaks for itself. It can be treated as<br>component testing, integration testing or something that tries to test stuff <br>outside the scope of unit tests. I got attracted to this side of development when I was surprised looking at the one of the smallest possible directory name ever in a code based project. As I speak, we get to see a number of Go based projects having an <em>e2e</em> folder. I believe, it has been popularised by the likes of etcd, Kubernetes and perhaps a few other open source communities.</p><h3>How to build one ?</h3><p>Before even getting into the How’s part, we must rather be comfortable with following questions:</p><p>— <em>Do we need to ?</em><br> — <em>Does our project need one ?</em></p><p>More often than not, a code based project will love to have one. Perhaps not with this name but the need will definitely exist. Some of the guiding principles highlighted in this article will also help us in getting the answers to these questions. So keep reading.</p><h3>Assuming our project needs one, how to build it then ?</h3><p>Are there any guidelines / rules that we can follow ? Here they are:</p><p>— `<strong><em>Refer and re-use wherever possible than build from scratch</em></strong>` is the golden rule.</p><p>— `<strong><em>Start Small</em></strong>`. In this context it refers to `<em>not to gulp the entire <br> code base and be very selective even to the point of refusing 90% of the code <br> that is available for free</em>`. This is the learning I have had all these years <br> as a programmer. This is essential if one wants to reach the milestones in <br> time which will otherwise become a mirage. I have burnt my fingers multiple times with regards to this principle. The latest one was when I tried to reuse the entire Kubernetes e2e for <a href="https://github.com/openebs/maya/">Maya’s</a> e2e. Needless to say I failed miserably. Some of these reasons are explained in this article.</p><h3>Is that all ?</h3><p>Definitely not. We will soon get into the How’s part which in turn is a repository of queries, doubts, and concerns.</p><p>To clarify it further, I had these queries when I started with the e2e journey for the <a href="https://github.com/openebs/maya/">Maya</a> project.</p><ul><li>Should e2e be shell wrappers over <a href="https://en.wikipedia.org/wiki/Command-line_interface">CLI</a>, for example, <a href="https://kubernetes.io/docs/user-guide/kubectl-overview/">kubectl</a> &amp; <a href="https://github.com/openebs/maya/tree/master/cmd/mayactl">mayactl</a>?</li><li>Should it be tied to Go <a href="https://golang.org/pkg/testing/"><em>testing</em></a> library ? Any benefits ?</li><li>Should it use <a href="https://onsi.github.io/ginkgo/"><em>Ginkgo</em></a> library ? Anything to gain ?</li><li>Should it be moulded with <a href="https://www.ansible.com/"><em>Ansible</em></a> and let the scene get enacted by its players (<em>read playbooks)</em> ?</li></ul><h3>Simplicity — One Rule to Rule them All</h3><p>All these queries should be answered with simplicity in mind. In other words, how to construct test code that is simple?</p><p>With simplicity in mind, let us pen down some dos and don’ts that will be an <br>indicator of simplicity versus complexity.</p><h3>Simplicity — Direct Thinking !!</h3><p>Listed are some of the direct modes of thinking with regards to simplicity.</p><ul><li>Code should just try to eliminate the repeating tasks of the developer, tester or operator. It will be simpler if it builds logic on only those ingredients that plays an inhibiting role in manual testing.</li><li>Find out one tool (<em>in other words a dependency</em>) that can make this test code easy to reason and comprehend. Build the code around this dependency. Though this dependency becomes a hard requirement, we are still good if it satisfies the simplicity rule.</li><li>It should be limited in its scope. For example in case of <a href="https://github.com/openebs/maya/">Maya</a>, it’s e2e is scoped to Kubernetes. Maya e2e avoids <a href="https://onsi.github.io/ginkgo/"><em>Ginkgo</em></a> etc libraries. It also avoids <em>Ansible</em> as the latter is not at all required.</li><li>It should be built using a high level language. Maya e2e uses Go as it’s only programming language. It does not use shell or any other scripts. This choice is also dependent on the scope the test code is targeting at. In case of Maya, <a href="https://kubernetes.io/">Kubernetes</a> (<em>and host of other container orchestrators</em>) use Go as their primary language. This helps Maya to abide by the golden rules mentioned earlier.</li></ul><h3>Simplicity — Inverted Thinking !!</h3><p>Listed are some of the inverted modes of thinking with regards to simplicity.</p><ul><li>It should not try to be another <a href="https://en.wikipedia.org/wiki/Domain-specific_language">DSL</a> in the making. In addition, it should not deal with some smart syntax. It will instantly seem smart to the eyes which developed it, but will definitely repel others.</li><li>It should not get into the way of the developer or the tester in form of auto <br>generation of test code etc. This will lead to its brittleness.</li><li>It should not dedicate it’s logic to concurrency while running the test cases. It should not build it’s logic around CPU cores and parallelism for running the test cases either. It might seem concurrency is a required feature for a particular test case. However, do we take concurrency into factor while executing these cases manually ? The test logic can have the concurrency built later in an iterative fashion. Remember “<em>shipping is better than perfect”</em> in these cases.</li><li>It should not play around abstraction of containers and their orchestrators. Remember this is not the reason for its existence in the first place. It goes against the prescription of simplicity. Hence, cut this noise if they are not a natural fit.</li><li>It should not mandate running the tests in containers. It is considered cool these days to run test cases in containers. However, it can backfire. For example running your app and test cases as containers within a namespace or inside the same cluster. We do not want <em>100s</em> and <em>1000s</em> of containers getting spawned in the same setup that is meant to test your app which are again a set of containers.</li><li>It should not involve a learning curve. It should be an involving library that can take inputs from the team (<em>internal as well as external</em>) and evolve.</li><li>It `need not / must not` follow design patterns. The best it can do is to adhere to the core language’s best practices.</li></ul><h3>What else should the e2e try to achieve ?</h3><p>Answers to these questions will help you in getting the other aspects of your e2e.</p><ul><li>Did we avoid fancy scripting ?</li><li>Is e2e (<em>especially the reusable code pieces</em>) better than the one it was created from ?</li><li>Will `<em>anybody be able to contribute to anything</em>` in this e2e project ?</li><li>Does it look similar to the practices followed by it’s programming language? Why? This leads to 0 learning curve and hence is simpler to understand?</li><li>Do you still remember the `Golden Rules` ? Add another one &amp; that is `<strong>End Small</strong>`.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b76e953af222" width="1" height="1" alt=""><hr><p><a href="https://medium.com/openebs/how-to-build-an-e2e-b76e953af222">How to build an e2e ?</a> was originally published in <a href="https://medium.com/openebs">OpenEBS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are you afraid of Go ?]]></title>
            <link>https://medium.com/openebs/are-you-afraid-of-go-fe25c3475685?source=rss-b5d888ed5889------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe25c3475685</guid>
            <category><![CDATA[openebs]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[go]]></category>
            <category><![CDATA[programming-tips]]></category>
            <dc:creator><![CDATA[Amit Das]]></dc:creator>
            <pubDate>Thu, 27 Jul 2017 12:00:48 GMT</pubDate>
            <atom:updated>2017-08-08T06:17:04.233Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you an experienced <strong>C</strong> programmer or perhaps an adept <strong>Java</strong> hacker finding <a href="https://github.com/golang/go/wiki/whygo"><strong>Go</strong></a> somewhat awkward to deal with. There may be different elements of surprise or familiarity based on the programmer’s background e.g a Java programmer may relate the GOPATH settings with the settings associated with JAVA_HOME. On a similar note, the very same programmer might be surprised with Makefiles that are used to script the compilation, build &amp; other stuff. I am sure though that this experience will be different for a seasoned C programmer.</p><p>If above and perhaps multiple of other reasons inhibit you from familiarising with Go then you are not the only one. The best thing is there are similar number of solutions that will help you play along the Go pitch.</p><p>Going back in time, this thorny feeling was exactly what we had faced when we started <a href="http://openebs.io/"><strong><em>OpenEBS</em></strong></a> development a year back. However one of the core goals of <em>OpenEBS</em> is ease of use; whether it is for the admin or the operator or the developer, tester and so on. In other words, different personas involved during the Software Life cycle, Deployment &amp; Maintenance should not go through a learning curve and rather experience <em>OpenEBS</em> as the simplest form of storage software that cuts through all the storage noise. This meant we did not want Go or any other programming language, as a matter of fact, to limit our way towards this enlightened journey.</p><p>During those days we implemented some of the strategies that helped nullify above pain points and provide a smooth cruise to all current &amp; future contributors of <em>OpenEBS</em>. This article will focus on our strategies meant for the newbies trying to get their hands dirty with Go.</p><p><strong><em>I have itemised our strategies as these steps:</em></strong></p><p><strong>[1]</strong> Start your baby steps at GO <a href="https://play.golang.org/"><strong>Playground</strong></a>. This will remove the initial hassles of downloading Go and setting up GOPATH &amp; stimulate you towards coding (read <em>familiarising with the newer syntax</em>) &amp; start believing the language by viewing &amp; analysing the output expected from your logic i.e. <em>WYSIWYG</em>.</p><p><strong>[2]</strong> Get familiar with <a href="https://www.vagrantup.com/"><strong>Vagrant</strong></a> (<em>I understand this is a different tool &amp; is no way related to Go programming</em>). Vagrant with its pitch for ‘<em>Development Environments Made Easy</em>’ will help you to set up VMs which has all the necessary Go based downloads and GOPATH settings. One can search for simple open source projects that does below:</p><blockquote>a/ V<strong>agrantfile</strong> that makes use of some sample Go programs (probably scripting a g<em>it clone to &lt;some-github-url&gt;</em>), &amp;</blockquote><blockquote>b/ Makefiles that has the logic to compile &amp; build.</blockquote><p>There is one catch though! One has to install Vagrant &amp; a preferred Hypervisor to enjoy the benefits of <strong>Step</strong> <strong>2</strong>. So there is a bit of learning curve involved.</p><blockquote>However, this should not deter one to avoid Step 2, as it has huge benefits going forward. You will appreciate this step once you understand the difficulties in managing projects with their right versions and dependencies. A trivial mistake here will lead to bug injections. This step will rather help you enjoy the taste of CI right from your laptop.</blockquote><p>After gathering enough confidence via these steps one can try out fancier stuff. Does <strong><em>running the builds in Travis</em></strong> or <strong><em>compiling the source code in a Docker container</em></strong> challenge you. You might as well explore some of these stuff &amp; others in our <a href="https://github.com/openebs"><strong>tool-room</strong></a>.</p><p>There may be various other options (<em>probably even simpler ones</em>) available in this `<strong>DevOps</strong>` world that are not mentioned here. E.g. <a href="https://github.com/moovweb/gvm"><strong>GVM</strong></a>. However, I have tried to list down the game plans that has worked well for us. Do get back with your valuable insights on how you have succeeded to tame the initial apprehensions while trying out a new language.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe25c3475685" width="1" height="1" alt=""><hr><p><a href="https://medium.com/openebs/are-you-afraid-of-go-fe25c3475685">Are you afraid of Go ?</a> was originally published in <a href="https://medium.com/openebs">OpenEBS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Container Native Storage builds its High Availability in style]]></title>
            <link>https://medium.com/openebs/container-native-storage-builds-its-high-availability-in-style-d9b5974f455a?source=rss-b5d888ed5889------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9b5974f455a</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[high-availability]]></category>
            <category><![CDATA[openebs]]></category>
            <category><![CDATA[storage]]></category>
            <dc:creator><![CDATA[Amit Das]]></dc:creator>
            <pubDate>Mon, 17 Jul 2017 11:21:32 GMT</pubDate>
            <atom:updated>2017-07-17T11:21:32.996Z</atom:updated>
            <content:encoded><![CDATA[<p>Infrastructure components are the toughest to build. It is meant to work always by default. It must be telecom grade as scores of applications rely on the infra component’s zero downtime, no deterioration in QOS, etc. However, we all know software has got defects and it is no different for infrastructure software components as well. One of things the software can do is implement high availability as its core feature and somehow buy time (by the virtue of HA) when one of these components experiences a break down due to defects or otherwise.</p><p>Implementing the HA piece seems to be the elixir to all the unforeseen issues. Is that so simple then? Programmers who have built the HA in the past will swear to its complexity. It is another piece of software logic which is very difficult to get it right the first time or even after a couple of major releases.</p><blockquote>The non HA programmer can have the flexibility to err. Well a programmer is supposed to be a human after all. However, this option is ruled out for the HA logic implementer.</blockquote><p>Having said this, implementing high availability logic in a `<em>Container Native</em>`software solution has reasons to cheer. Most of the container orchestration platforms have abstracted the scheduling, placements, evacuations, prioritised jobs and what not and thus have freed the average programmer from these overwhelming tasks.</p><p>All of a sudden, programming becomes fun again (<em>HA logic becomes more like placing the </em><a href="https://en.wikipedia.org/wiki/Lego"><em>lego</em></a><em> blocks in a fashion / pattern to get your favourite character into action</em>).</p><p>Programmers now need to build the required HA logic by tying together appropriate placement components that results into a customised HA solution. We at OpenEBS <a href="https://github.com/openebs/"><strong><em>toolroom</em></strong></a> have been trying to maximise the offerings provided by <a href="https://kubernetes.io/"><em>Kubernetes</em></a> towards achieving a truly container native solution for OpenEBS high availability. All the advancements in Kubernetes will make OpenEBS better and the scenarios handled by OpenEBS (<em>which will never be simple</em>) can become a point of reference in Kubernetes.</p><p>Let’s get into some storage specific HA basics:</p><p>1/ A typical persistent storage solution would require its data to be replicated across hosts within a cluster. There are also cases, where the production scenarios demand this replication to be across geographies. In addition, hybrid cases require some replicas to reside within the cluster while other replicas to be placed across zones, regions, etc.</p><p>2/ Since storage solutions derives its power from its underlying hardware resources, it makes sense to earmark exclusive hardware for storage components. In other words, the host(s) would want to avoid software components that are not storage specific.</p><p>3/ Solutions around placements alone are not sufficient for storage software to be highly available. There can be cases where a storage controller does not support active-active mode. Now relying just on placements can not avoid application outages due to this storage hiccups (<em>i.e. storage protocol connection breaks resulting in breakdown of the applications consuming this storage</em>). The evacuation should be fast &amp; its new placement cannot take any time longer. Appropriate policies should be in-place to let these storage components be evacuated early before the application components. This becomes more essential during a node crash where every component will fight for survival.</p><p>4/ Storage HA cannot rely on half baked evacuations that may lead to split-brain conditions. Storage should either be evacuated or be let to die along with the crash. There should be no cases of hangs, stalls, freezes, you name it. There can be only one option &amp; that is:</p><blockquote>100% successful evacuation as well as 100% successful re-scheduling.</blockquote><p>In some cases, 100% successful evacuation might imply use of the logic called <a href="https://en.wikipedia.org/wiki/STONITH"><strong>stonith</strong></a> before boarding the re-schedule flight.</p><p>With above HA basics (<em>you may like to call it hardships</em>) in our mind let us find if the most popular container orchestrator has any feature, policy, etc that can simplify HA in storage. While looking at Kubernetes (version 1.7) I could find couple of policies that can help storage build it’s HA story with ease.</p><blockquote>One: ‘Node affinity’ is a feature that constrains which nodes your pod is eligible to schedule on, based on labels on the node.</blockquote><blockquote>Two: ‘Inter-pod affinity and anti-affinity’ is a feature to constrain which nodes your pod is eligible to schedule on based on labels on pods that are already running on the node rather than based on labels on nodes.</blockquote><blockquote>Three: ‘Taints and tolerations’ work together to ensure that pods are not scheduled onto inappropriate nodes. One or more taints are applied to a node; this marks that the node should not accept any pods that do not tolerate the taints. Tolerations are applied to pods, and allow (but do not require) the pods to schedule onto nodes with matching taints.</blockquote><p>Does above sound familiar? It does not introduce any new jargons except for the term `Pod` and perhaps `Labels`. Pod is a logical concept for a container or bunch of containers while labels can be understood as tags. Now if our persistent storage is really a piece of software that runs from within a container all the properties that Kubernetes exposes can be applied against this storage software &amp; let it construct (or extend or even plug) its `High Availability` feature.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9b5974f455a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/openebs/container-native-storage-builds-its-high-availability-in-style-d9b5974f455a">Container Native Storage builds its High Availability in style</a> was originally published in <a href="https://medium.com/openebs">OpenEBS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Test Driven Development — The DevOps Way]]></title>
            <link>https://medium.com/openebs/test-driven-development-the-devops-way-97cbff2f4169?source=rss-b5d888ed5889------2</link>
            <guid isPermaLink="false">https://medium.com/p/97cbff2f4169</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[tdd]]></category>
            <category><![CDATA[openebs]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Amit Das]]></dc:creator>
            <pubDate>Thu, 13 Jul 2017 09:57:40 GMT</pubDate>
            <atom:updated>2017-08-08T06:18:40.163Z</atom:updated>
            <content:encoded><![CDATA[<p>We might have all heard of TDD, don’t we ? TDD is the abbreviated form for `Test Driven Development`. It might also be true in-case of newbies to have never heard of TDD in the current season where DevOps, NoOps, DataOps, ML, IOT rule the roost.</p><p>TDD in simpler terms would be planning and implementing test logic before implementing its development logic. However, I find it very difficult to do this in practice. What I do instead is a little bit of planning &amp; start building the development logic. In the next iteration, I would start writing corresponding test logic i.e. unit test programming (<em>remember those jUnit days</em>).</p><p>Readers may still be wondering how “<em>DevOps is related to TDD</em>”. Well, here it is:</p><blockquote><em>How about using the best of DevOps tools towards TDD implementation?</em></blockquote><p>The logic behind this is no brainier.</p><blockquote>I find the very best of the open source community busy in building &amp; tuning tools old &amp; new that are meant to satisfy DevOps culture &amp; practices.</blockquote><p>It makes sense for us to use these tools that meets our TDD needs.</p><p>The question that might be lingering now would be about DevOps vis-a-vis TDD. <strong><em>Is TDD not part of DevOps culture</em></strong>? The answer is an emphatic yes. However, I am trying to pick up one thread at-a-time from the DevOps culture / practice. That thread here is TDD &amp; is the focus area for this article. I would like to emphasise that TDD does not necessarily mean unit testing. It can be thought of as applying test logic, scenarios etc as the team continues with its development efforts, that in-turn brings in changes, discoveries, ideas in test as well as in development. <strong><em>To sum it up, it tries to <br>remove the pain associated with latter stage design changes</em></strong><em>.</em> In addition, the team is <strong><em>no more afraid</em></strong> of new features, bug fixes, requirement changes, etc. due to the presence of test logic that gets triggered due to any of these changes.</p><p>Hope to talk again with some tangible implementations we are doing in <a href="https://blog.openebs.io/">OpenEBS</a>. I would end the story here with a tip.</p><blockquote><em>The popular currency of current age DevOps’ tooling is Docker &amp; Kubernetes.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97cbff2f4169" width="1" height="1" alt=""><hr><p><a href="https://medium.com/openebs/test-driven-development-the-devops-way-97cbff2f4169">Test Driven Development — The DevOps Way</a> was originally published in <a href="https://medium.com/openebs">OpenEBS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running through the mud looking skywards]]></title>
            <link>https://medium.com/openebs/running-through-the-mud-looking-skywards-3093853561e9?source=rss-b5d888ed5889------2</link>
            <guid isPermaLink="false">https://medium.com/p/3093853561e9</guid>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[industry]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[openebs]]></category>
            <dc:creator><![CDATA[Amit Das]]></dc:creator>
            <pubDate>Sun, 12 Feb 2017 03:38:54 GMT</pubDate>
            <atom:updated>2017-08-08T06:18:13.765Z</atom:updated>
            <content:encoded><![CDATA[<p>I knew, we would be running through the mud looking skywards for those brightest stars. We were not at all disappointed with our first attempt at <em>Kuppam Engineering College</em>, India.</p><p>I always believe, bridging the minds of academia &amp; industry has to go beyond the nuances of theory vs. practical. We call ourselves as the industry’s core and form the industry’s grey cells. What we need to do is make our problems open to the public. These problems becomes the new practice that needs to be picked up by our <em>alma mater</em>. Once selected, it will take no time for these problems to go viral among the students of these institutions. Let these young minds chart their own course; love, enjoy &amp; live every moment when they traverse through this meandering amazon of practical problems. This becomes the fodder for the future theory allowing the current one to rest in peace.</p><p>Above sounds like a grand planning that resembles more like a trickle down effect. Well the answer is a big ‘No’. Team at <a href="http://openebs.io/"><strong>OpenEBS</strong></a> believes there are many faster ways to achieve above in a time bound manner. Hence the formation of various internship programs where <a href="http://openebs.io/"><strong>OpenEBS</strong></a> approaches the Universities to get the latter on same plane that the former is passionate about.</p><p>At <em>Kuppam</em>, we could feel the freshness in the air, the disruptions that yearns to come out of the closet. We are all geared to lighten up this brilliance which is currently lying dishevelled.</p><p>On a closing note, I challenge the myriad number of B.E projects &amp; PhD programs that are purposeless versus the likes of problems that the world wants us to solve. Join me in my effort to solve the problems that matters.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3093853561e9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/openebs/running-through-the-mud-looking-skywards-3093853561e9">Running through the mud looking skywards</a> was originally published in <a href="https://medium.com/openebs">OpenEBS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>