Skip to Content
Kubernetes Best Practices, 2nd Edition
book

Kubernetes Best Practices, 2nd Edition

by Brendan Burns, Eddie Villalba, Dave Strebel, Lachlan Evenson
October 2023
Intermediate to advanced
324 pages
7h 46m
English
O'Reilly Media, Inc.
Book available
Content preview from Kubernetes Best Practices, 2nd Edition

Chapter 18. GitOps and Deployment

In this chapter, we will discuss GitOps and how it can be used to deploy and manage applications on Kubernetes. We will deep dive into best practices of setting up a GitOps workflow and how to utilize the different tools available to achieve this.

GitOps is a way to do Kubernetes application deployment. It works by utilizing Git as a single source of truth for your Kubernetes resources. With Git at the center of your deployment pipelines, developers and operators can make pull requests to accelerate and simplify application deployments and operations tasks in Kubernetes. This allows you to utilize the same practices for managing Kubernetes resources as you do for managing application code. Developers will be very familiar with the workflow, as they can utilize the same tools they use to work with application code.

We cover the following topics in this chapter:

  • What is GitOps?

  • Why utilize GitOps?

  • GitOps compared to other deployment methods

  • Patterns and best practices

  • GitOps tooling

We also go through an example GitOps workflow consisting of the following tasks:

  • Setting up a GitOps agent with Flux

  • Connecting Flux agent to a Git repository

  • Syncing resources to a Kubernetes cluster

  • Deploying an application to the cluster

What Is GitOps?

GitOps was popularized by the folks at Weaveworks, and the idea and fundamentals were based on their experience of running Kubernetes in production. GitOps takes the concepts of the software ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Kubernetes: Up and Running, 2nd Edition

Kubernetes: Up and Running, 2nd Edition

Brendan Burns, Joe Beda, Kelsey Hightower
Kubernetes Patterns, 2nd Edition

Kubernetes Patterns, 2nd Edition

Bilgin Ibryam, Roland Huss

Publisher Resources

ISBN: 9781098142155Errata PageSupplemental Content