<?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 Rohit Garg on Medium]]></title>
        <description><![CDATA[Stories by Rohit Garg on Medium]]></description>
        <link>https://medium.com/@rohitggarg?source=rss-1e0389c703ff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0ZedYg-wjgdTnp7LdQ7KUQ.jpeg</url>
            <title>Stories by Rohit Garg on Medium</title>
            <link>https://medium.com/@rohitggarg?source=rss-1e0389c703ff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:14:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rohitggarg/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[Battle-tested CI/CD environments in enterprises for Kubernetes workloads]]></title>
            <link>https://medium.com/@rohitggarg/battle-tested-ci-cd-environments-in-enterprises-for-kubernetes-workloads-876ecd9e5093?source=rss-1e0389c703ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/876ecd9e5093</guid>
            <category><![CDATA[argo-cd]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[aws-secret-manager]]></category>
            <category><![CDATA[gitops]]></category>
            <dc:creator><![CDATA[Rohit Garg]]></dc:creator>
            <pubDate>Mon, 23 May 2022 07:05:39 GMT</pubDate>
            <atom:updated>2022-05-23T12:25:59.194Z</atom:updated>
            <content:encoded><![CDATA[<p>Enterprises have elaborate CI/CD setups that take care of automation needs for different technology stacks while keeping good delivery practices in mind. Since docker packaging is widely prevalent in the industry and Kubernetes is the de-facto orchestration platform for container workloads, we want to share our experience with both GitOps and non-GitOps models for this combination. We share our expertise with GitOps CI/CD implementation in this post that is being employed to support almost 50+ teams and counting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_9s_VKl25gYNEzN4nS6WXA.jpeg" /><figcaption>GitHub Actions + ArgoCD</figcaption></figure><h4>GitHub Actions for CI</h4><ul><li><strong>CI </strong>workflow <strong>pushes docker artifacts</strong> to a docker repository that has been pre-configured with Kubernetes clusters.</li><li><strong>Sequential</strong>, multi-repository workflows for promoting builds in a Push-based model (e.g. Build, Test)</li><li><strong>Parallel non-blocking</strong> workflows for mainly running tasks like sonar, lint, etc. (e.g. Static code analysis, Packaging)</li><li><strong>ArgoCD</strong> takes over the responsibility of deploying the application/service/workload to K8S.</li><li><strong>Artifact promotion</strong> happens through git commits in the <em>infrastructure</em> repository</li></ul><p><strong>Secrets Handling</strong></p><ul><li><strong>Organization/Enterprise level secrets </strong>like<strong> </strong>Sonar scanning token and Repository read credentials are available on the GitHub organization level to assist in building/testing source code.</li><li><strong>Repository Level secrets </strong>like artifact repository write credentials, <em>infrastructure</em> repository write keys, etc are needed to perform activities like artifact push/promotion through git commits.</li><li><strong>Environment-specific secrets</strong><em>(dev/stage/prod)</em><strong> </strong>store application secrets like Database credentials, API keys, etc are pushed to the cloud providers through <em>infrastructure</em> GitHub action run.</li></ul><h4>ArgoCD for CD</h4><ul><li><strong>GitHub <em>infrastructure</em> repositories</strong> are being used to store the configuration required to deploy applications/services on Kubernetes clusters with the help of ArgoCD.</li><li>The <strong>Git-based model</strong> enables Change management of every project to track when a particular change was released and who did it.</li></ul><p><strong>Application Secrets</strong></p><ul><li><strong>AWS Secret manager, K8S secrets, and Hashicorp vault</strong> are the keepers of these values.</li><li><strong>Helm configuration in the Application</strong> can specify which keys need to be pulled from secret managers for running the application/service</li></ul><p><strong>Pull based model</strong></p><ul><li>ArgoCD is configured to <strong>listen</strong> to the <em>infrastructure</em> repository for commits and act accordingly.</li><li>This model relies on<strong> post-deployment hooks</strong> which can be consumed by other systems (CI) to run tasks like health checkups, functional tests, smoke, notifications, etc.</li></ul><p><strong>Push based model</strong></p><ul><li>ArgoCD API/client is used to <strong>notify ArgoCD</strong> to initiate the sync process for an Application to K8S.</li><li>The workflow <strong>waits for ArgoCD </strong>deployment to sync changes completely and then proceeds with the flow further.</li></ul><h3>Security of GitOps model</h3><p><strong>GitHub actions security</strong></p><ul><li>Connected GitHub authentication to a third-party authentication provider (IDP e.g. Auth0, Okta)in a <strong>SCIM</strong> manner. It helps us identify people who have been de-boarded and automatically revokes their access to the organization.</li><li>Three distinct sets of <strong>IDP groups </strong>control the <strong>Admin/Write/Read</strong> access to a group of repositories to which they’re assigned.</li></ul><p><strong>ArgoCD security</strong></p><ul><li>We have utilized ArgoCD’s <strong>RBAC config</strong> map for allowing permissions to different teams on different namespaces of the Kubernetes cluster.</li><li>ArgoCD utilizes <strong>GitHub read access </strong>(<em>infrastructure</em> repository) to sync application/service configuration.</li></ul><p>That’s all for now! In our subsequent posts, we would be writing about how to do <strong>non-GitOps-based</strong> deployments using other open-source like Jenkins, GoCD, etc.</p><p><em>Authors: </em><a href="https://medium.com/u/1e0389c703ff"><em>Rohit Garg</em></a><em> , </em><a href="https://medium.com/u/7ede784e34c"><em>Gaurav Kumar</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=876ecd9e5093" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>