My Authors
Read all threads
THREAD: What is GitOps?

Is this something that you should learn?

Let's dive into it.
1/10

The idea behind GitOps is straightforward:

1. Scripts that create update, delete, etc. infrastructure are saved in GIT.
2. The state of your infrastructure is saved in GIT.
3. You have automation to trigger all your scripts.

Let's see an example.
2/10

Let's deploy an app with a single replica:

1. Commit the Deployment definition in GIT
2. Execute the script to deploy
3. Done

How is this new?

Surely you do this already!

The devil is in the details, though.
3/10

What do you do if you want to scale your deployment?

In GitOps, the state of the infrastructure is stored in GIT.

So you change your Deployment definition in GIT and apply the change to production.

What about autoscaling?
4/10

The autoscaler should not increase the number of replicas live!

It should increment the number of replicas in GIT.

Then, the change should be redeployed to production.

In GitOps, every change goes through GIT.

Always.

But why?
5/10

Imagine deleting your infrastructure by mistake 😱

If you have the full state in GIT, you can trigger your scripts and recreate the same setup as before!

When you rebuild the infra, even the number of replicas set by the autoscaler are set correctly.

Powerful, isn't it?
6/10

There are other benefits:

- You have an audit log of all the changes: the GIT history
- You only need to learn GIT to deploy
- You can roll back to any point in time! (just a GIT revert!)
7/10

Do you need CI/CD to do GitOps?

No.

You can manually trigger deployments yourself.

But it's boring, and automation goes a long way to help.

You should checkout @argoproj #FluxCD @jenkinsxio
8/10

Does GitOps work only with Kubernetes?

No.

You can apply GitOps to any project!

As long as you hold your infrastructure state in GIT and have scripts to apply changes, you can use anything you want.
9/10

If you want to learn more about GitOps:

- gitops.tech
- github.com/weaveworks/awe…
- deploy.live/blog/a-year-wi…

GitOps was invented by the clever people at @weaveworks — you can check out their website here weave.works/technologies/g…
10/10

You can also tune-in to @Salaboy's webinar on Jenkins X (a CI/CD tool designed for GitOps): event.on24.com/wcc/r/2451691/…

Salaboy will demonstrate GitOps end-to-end with a live demo!

@linode is hosting the event!

What should the next thread be about? Let me know!
Missing some Tweet in this thread? You can try to force a refresh.

Keep Current with Daniele Polencic

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!