liveBook · Manning

Infrastructure as code

As explained in Kafka for Architects

Infrastructure as code is the practice of defining and managing infrastructure through machine-readable declarative or procedural files.

Infrastructure as code defines Kafka infrastructure and configuration in machine-readable files, making desired state version-controlled, reproducible, and auditable. A GitOps workflow detects changes, compares desired and actual state, and applies the required updates. section 10.2.2

Common implementation paths include:

  • Kubernetes operators such as Strimzi or Confluent for Kubernetes manage Kafka resources from updated configuration. section 10.2.2
  • Ansible automates topic creation and configuration, while Puppet manages infrastructure consistency and Terraform defines Kafka resources declaratively. section 10.2.2

Governed configuration change

A consumer team proposes a Kafka configuration change through a pull request. Data owners review and approve or reject it before the GitOps pipeline synchronizes the cluster. section 10.2.2

Figure 10.1 Applying Kafka cluster modifications via GitOps: after the updated Kafka cluster configuration is pushed, the CI/CD pipeline retrieves the current cluster state, calculates the required modifications, and applies them.
A screenshot of a computer

AI-generated content may be incorrect.

Trace the flow from a Git configuration update through state comparison to applied Kafka cluster modifications. section 10.2.2

How Kafka for Architects covers it

How deep it goes
Explains reconciliation, tooling alternatives, and governance, but stops short of low-level implementation walkthroughs.
Examples
Uses Strimzi, Confluent for Kubernetes, Ansible, Puppet, Terraform, and pull-request approval workflows.
What you can do after
Operate/configure Kafka resources reproducibly with GitOps, Kubernetes operators, Ansible, Puppet, or Terraform.
How it connects
Connects Kafka infrastructure with GitOps, CI/CD pipelines, Kubernetes operators, pull requests, and version control.

Also explained in

Compare how 14 books explain infrastructure as code →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kafka for Architects. The section links point to the parts of the book it draws on.