profile-img
Daniele Polencic

@danielepolencic

Teaching containers and Kubernetes at @learnk8s ♦︎ Certified Kubernetes Administrator ♦︎ Kubernetes memes aficionado

calendar_today11-07-2009 18:39:24

4,3K Tweets

11,8K Followers

186 Following

Daniele Polencic(@danielepolencic) 's Twitter Profile Photo

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.

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.
account_circle
Daniele Polencic(@danielepolencic) 's Twitter Profile Photo

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.

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.
account_circle
Daniele Polencic(@danielepolencic) 's Twitter Profile Photo

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?

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?
account_circle
Daniele Polencic(@danielepolencic) 's Twitter Profile Photo

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?

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?
account_circle