Synchronizing repository changes with GitOps

Special Ops

Article from ADMIN 79/2024
By
GitOps applies DevOps practices through infrastructure automation of version control repositories. We look at why it is so popular and why it is often used in the context of Kubernetes.

In the DevOps world, everybody is talking about GitOps. Its increase in popularity in recent years makes it clear that it's not just a passing fad, but a consistent trend offering significant advantages over legacy approaches.

What GitOps Is Not

Before I move on to specific examples of GitOps principles in practice, it is important to understand what GitOps is and, perhaps more importantly, what it is not. It's probably easier to start with what it isn't, because many people see GitOps as a panacea for all problems in managing applications and their infrastructure. Not only is this belief false – in fact, implementing a GitOps strategy usually involves introducing additional steps and software into your usual workflow, which may make it more complex – but if you don't have experienced staff, things can break more often.

You might also think that because GitOps has "Git" in name, it has to be somehow related to Git. In fact, GitOps can be realized in any version control system (VCS). Because Git is currently very popular, it only makes sense to use it instead of, say, SVN or Subversion; however, nobody forbids you from creating a GitOps solution with these legacy VCS options.

Finally, just because Git allows you to revert operations doesn't mean you can as easily bring your infrastructure to a previous state. One of the complications is the persistent data stored in your infrastructure. Take, for example, an Amazon Simple Storage Service (S3) bucket: If you accidentally delete it, you can recreate it later when you discover your mistake (provided someone else hasn't used that particular bucket name), but obviously the objects that had been there will all have disappeared. Therefore, for persistent data, and databases in particular, you need a specific approach that I briefly explain later. In short, GitOps doesn't make backups and all other good practices redundant,

...
Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy ADMIN Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

comments powered by Disqus
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs



Support Our Work

ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.

Learn More”>
	</a>

<hr>		    
			</div>
		    		</div>

		<div class=