<?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 Ran vijay Singh on Medium]]></title>
        <description><![CDATA[Stories by Ran vijay Singh on Medium]]></description>
        <link>https://medium.com/@ranrajwar1357?source=rss-682bd6c30c02------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*euuOThicZeMLqOzO.jpg</url>
            <title>Stories by Ran vijay Singh on Medium</title>
            <link>https://medium.com/@ranrajwar1357?source=rss-682bd6c30c02------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:54:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ranrajwar1357/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[Moving to Gitops(Flux) with kubernetes]]></title>
            <link>https://medium.com/@ranrajwar1357/moving-to-gitops-flux-with-kubernetes-24b94fa8e666?source=rss-682bd6c30c02------2</link>
            <guid isPermaLink="false">https://medium.com/p/24b94fa8e666</guid>
            <category><![CDATA[learnin]]></category>
            <category><![CDATA[flux]]></category>
            <category><![CDATA[gitops]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Ran vijay Singh]]></dc:creator>
            <pubDate>Fri, 29 Oct 2021 08:09:58 GMT</pubDate>
            <atom:updated>2021-10-29T08:09:58.424Z</atom:updated>
            <content:encoded><![CDATA[<p>Gitops is a method to make <strong>git as a source of truth for your system changes/configuration as well as your CI/CD approach</strong>, it helps with maintaining <strong>history in source file</strong> as well automation of changes without needing any intervention</p><p>Most of us are accustomed to using kubernetes for container orchestration ,whether it is <strong>self managed kubernetes</strong> by kubeadm, kops,etc. or <strong>cloud managed kubernetes</strong> like EKS, AKS, GCP.</p><p>One of the important thing that is part of kubernetes Cluster is <strong>Deployment, i.e, process to update application with its latest or previous version inside kube cluster </strong>and that occurs multiples times a day parallelly across multiple environments.</p><p>We have multiple methods to create or update a deployment.One is via <strong>kubectl</strong> ,other is via <strong>helm</strong> and many more.</p><ul><li><a href="https://kubernetes.io/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro/">Using kubectl to Create a Deployment</a></li><li><a href="https://helm.sh/docs/intro/using_helm/">Using Helm</a></li></ul><p>In all above mentioned methods to deploy your application in kubernetes , you need a <strong>machine to have access to your kube cluster</strong>.Due to this , you not only need to provide a <strong>deployment only kube user</strong> ,but need to <strong>secure this machine(which is part of your Continuous Deployment)</strong> as to prevent access to your cluster.</p><p>We can deploy an <strong>agent</strong> running <strong>inside kube cluster</strong> which will <strong>handle the deployment</strong> with out any needed from outside and no need to grant any machine kube access , we can <strong>create a git repo</strong> and <strong>store all the required manifest and ask our agent to poll for changes from that location</strong>.</p><p>You can use <strong>flux with helm operator</strong>.Flux <strong>store git repo location</strong> from where all the manifest resides( Inside Manifest helm release object is define which contains all the values that will be passed in a helm chart) and also the <strong>location of helm chart</strong> ,where to pass the values defined in helm release object</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RWUC013rh__1WwJ9CjXjeA.png" /></figure><p>Flux has an <strong>interval which polls the changes</strong> and <strong>compare the git hash of current poll with last poll commits</strong> and based on <strong>new updates</strong> in the manifest, <strong>update the helm release object </strong>of a particular service.</p><p>Now the <strong>helm operator also has an interval poll</strong> which watches the helm release object and compare the releases with existing release,if any diff is found helm updates/creates objects based on the values provided.</p><p>And thus maintain the state of cluster with respect to state defined in manifest(git repo)</p><p><strong>Flux</strong> is pretty simple and offer plenty of use cases from <strong>deployment from various SCM,notifications </strong>to various channel<strong>(slack,etc)</strong>,etc.</p><p><a href="https://github.com/fluxcd/flux2">GitHub - fluxcd/flux2: Open and extensible continuous delivery solution for Kubernetes. Powered by GitOps Toolkit.</a></p><h4>Note: Implementing Gitops is not part of this article.This article tries to explain few reason why using Gitops is the norm nowadays and why teams should move to this,instead of picking traditional methods to deploy in kube cluster</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24b94fa8e666" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>