concept Code in category kubernetes

appears as: Code, Code
GitOps and Kuberentes

This is an excerpt from Manning's book GitOps and Kuberentes.

1.3.1   Infrastructure as Code

While not unique to GitOps, Infrastructure as Code (IaC) is a foundational paradigm for GitOps where the configuration of the infrastructure that runs your applications is accomplished through the execution of an automated process rather than manual steps.[9] In practice, IaC means that infrastructure changes are codified, and the “source code” for the infrastructure are stored in a version control system. The “code” does not necessarily have to be in a language like Python or C++. Depending on the continuous deployment tool used, it might be either declarative configuration, imperative automation script, or a full-fledged program written in Go. Imperative IaC is where the infrastructure is created by making procedural calls to the API of the infrastructure provider. We will discuss declarative vs. imperative infrastructure configuration when we cover the operational benefits of GitOps later in this chapter.

Regardless of how it is implemented, Infrastructure as Code brings tremendous improvement to the infrastructure management process. Let's go through the most notable benefits.