CICD for Kubernetes with Argo CD and GitOps

CICD for Kubernetes with Argo CD and GitOps

Lets take Argo CD for a Spin in this week's article

Argo CD is part of Argo project which was open sourced by Intuit, my former employer :) . Something I am very proud to write about in today's post :

The projects under Argo are :

  • Argo CD
  • Argo CI
  • Argo Workflow
  • Argo Events

Each of these projects make continuous delivery on Kubernetes convenient by removing layers of complexities that are usually present in any deployment pipeline. Argo CD runs a open source Kubernetes controller to get leveraged as a GitOps based declarative deployment model.

Here's how it facilitates the deployment workflow :

Essentially you maintain two repos(based on GitOps model)in Git serving as a single source of truth,

Imagine you have repoA for your code checkins and repoB for storing the Kubernetes manifests files (controled by Helm for example).

From a developers perspective, when you do a checkin to git repoA, your Jenkins CI kicks off to build the artifact/image and pushes it to your artifactory and publishes the new image id in to your Kubernetes manifest files in your deployment repoB.

Now, you have Argo CD doing a constant diff with your deployment repoB. The moment it finds a new image id, it runs "kubectl apply" to bring your application to the same level with that of Git. This approach is called a declarative deployment model.


No alt text provided for this image

Image credit : https://argoproj.github.io/argo-cd/operator-manual/architecture/

What are the benefits ?

  • Smooth rollback process. Something went wrong, just change the image id to its previous one and you get rolled back as you sip your coffee
  • Perfect fit for Kubernetes declarative model

Learn more about Argo

https://argoproj.github.io/argo-cd/#what-is-argo-cd

要查看或添加评论,请登录

Gaurab Dey的更多文章

  • GitOps , the new game changer in town

    GitOps , the new game changer in town

    Gitops is changing the landscape of infrastructure automation. It has become the game changer in the CICD process.

    12 条评论
  • Distributed Systems and the Role of CAP Theorem

    Distributed Systems and the Role of CAP Theorem

    Why is CAP theorm adopted in distributed systems and why you can't have it all in CAP theorem? If you interview for any…

    4 条评论
  • Speed is all that matters

    Speed is all that matters

    CICD and DevOps There is nothing called a perfect world nor a perfect CICD practice. Organisations will evolve and will…

    1 条评论

社区洞察

其他会员也浏览了