#gitops (2023-09)

Discuss continuous delivery of infrastructure

Archive: https://archive.sweetops.com/gitops/

2023-09-12

Tim Birkett avatar
Tim Birkett

GitOps… I’m still struggling to find any real reason to move from change-driven CI/CD with helmfile to something like ArgoCD or Flux.

With the CI/CD “push” approach, I can see deployment issues in a familiar interface, and a single pipeline view through to deployment. I can deploy through environments with visible e2e or smoke tests.

In the GitOps “pull” model I have yet another interface and bunch of logs to sift through. I have to workaround some things like CRDs.

IMO, most GitOps repos end up a bit of a mess over time

bradym avatar

If you can’t see a reason to move to gitops, don’t.

I’d consider a gitops if I were starting from scratch, but I’d have a hard time justifying a move from something else to gitops unless there were clear benefits and improvements over my current approach. (I’m also using an helmfile CI/CD approach.)

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

IMO, the biggest advantage with ArgoCD is that it provides an “immutability firewall”

cool-doge1
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
What Is GitOps | Weaveworksattachment image

What is Gitops? If you’ve ever what GitOps actually is, this article is for you. Get a concise definition of GitOps with comparisons and examples.

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

With the immutability firewall, you ensure your CI systems don’t have direct access to the clusters which forces every change to go through the VCS.

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

It’s a bit convoluted, but at Cloud Posse we still use helmfile, but we use the template functionality to render the manifests to our deployment VCS.

Kostis (Codefresh) avatar
Kostis (Codefresh)

@Tim Birkett Disclaimer, I am contributing to the Argo project, and work for a company that has an enterprise GitOps product.

Biggest advantage is solving configuration drift once and for all https://www.cncf.io/blog/2020/12/17/solving-configuration-drift-using-gitops-with-argo-cd/

Second advantage is the live view. With a traditional pipeline, you deploy something, it finishes ok. 5 minutes later the app crashes for some reason and the pipeline still shows up as “green”. With ArgoCD/Flux you get a live view of what is actually deployed or not.

Third advantage is that diffing between environments is as easy as diffing between git repos/branches/folders (because point 1 stands)

That being said GitOps is not perfect. https://codefresh.io/blog/pains-gitops-1-0/

The pains of GitOps 1.0attachment image

GitOps as a practice for releasing software has several advantages, but like all other solutions before it, has also several shortcomings. It seems that the honeymoon period is now over, and we can finally talk about the issues of GitOps (and the current generation of GitOps tools) In the article we will see the following […]

2023-09-15

2023-09-27

Sean avatar

For GitOps of Helm, what’s your preference between: • :a: CI tool renders to k8s manifests (helm/helmfile template) -> writes to git/s3/… -> CD tool (flux/argo/…) pickups rendered manifests and applies them to cluster. • :b: CD tool (flux/argo/…) uses it’s own helm functionality to render on the fly and apply to cluster. And for both, what’s your take on compatibility with Helm hooks?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

We’re using option A

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

One thing that is unfortunate about ArgoCD and plugins, is to upgarade/update a plugin, you need to redeploy ArgoCD, which is a disruptive action. Reminds of Jenkins.

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

cc @Matt Calhoun

    keyboard_arrow_up