Download CVCV

The modern enterprise infrastructure stack, explained layer by layer from bare metal to observability

InfrastructureKubernetesNetworkingLinuxTerraformObservabilitySREPlatform Engineering


Most maps of the infrastructure stack are written once and then quietly rot. The version numbers age, a deprecated tool stays in the diagram, and a claim that was true in 2018 gets copied forward until everybody repeats it.

This is a nine-layer map, checked in August 2026. Every layer says what it does, what replaced what, and why. Where the common version of a claim is wrong, it says so and gives the specific reason.

What this corrects

Ten claims that circulate widely and are wrong, or were true once and are not now. Each is expanded in its layer below.

The common claim What is actually true
IPMI is unencrypted, Redfish fixed that IPMI 2.0 encrypts sessions over RMCP+. The real flaw is authentication: cipher suite 0 accepts any password, and RAKP leaks a password hash to unauthenticated callers (CVE-2013-4786)
Terraform state locking needs a DynamoDB table S3 native conditional-write locking (use_lockfile) landed in Terraform 1.10 and OpenTofu 1.10. The DynamoDB lock table was deprecated in Terraform 1.11
The golden signals are Rate, Errors, Duration That is RED. Google’s four golden signals are Latency, Traffic, Errors, Saturation
Calico is the slow iptables CNI, Cilium is the eBPF one Calico has shipped an eBPF dataplane since 2020. This is a dataplane choice, not a project choice
vm.overcommit_memory=2 prevents the OOM killer It does not. It caps commitments at swap plus overcommit_ratio percent of RAM so allocations fail honestly instead
net.core.somaxconn defaults to 128 It has defaulted to 4096 since Linux 5.4. It is also only a ceiling; the app’s listen() backlog still governs
VMs are slow to boot Firecracker starts a microVM in roughly 125 milliseconds. The remaining VM cost is memory, not boot time
Vault Agent injects secrets into application memory It renders them into a shared tmpfs volume. The app reads a file; it never holds a Vault token
ArgoCD corrects configuration drift automatically Only once selfHeal is enabled under automated sync. It is off by default
Multipathing means dm-multipath For NVMe-oF it does not. NVMe uses native multipathing with ANA

The mental model: infrastructure as an automated car factory

In the modern enterprise, infrastructure at scale is no longer about the manual assembly of individual servers. We have moved past the era of digital craftsmanship into the age of industrial-scale software production. Strategic infrastructure is not the car itself; it is the automated assembly line that builds, secures, and maintains thousands of units simultaneously.

To master this landscape, one must view the data center through the lens of an automated car factory:

  • The Server is the car being produced.
  • The Network represents the road system and internal logistics tracks that move parts between stations.
  • Infrastructure as Code (IaC) acts as the robotic assembly arms, ensuring every component is configured to exact specifications without human variance.

The objective is to transition from manual “hand-built” systems toward a high-speed, self-healing production environment. This journey is a strict hierarchy of dependencies; it begins with the physical ground upon which the factory is built: the hardware.

Layer 1: Bare metal, BMC, and hardware provisioning

The factory floor: out-of-band control through the BMC with Redfish or IPMI, and unattended provisioning over PXE and iPXE with MAAS or Tinkerbell.

Hardware control is the non-negotiable bedrock of infrastructure. For high-performance environments such as low-latency trading or massive-scale databases, the objection to virtualization is rarely raw throughput; hardware-assisted virtualization costs only a few percent there. The real tax is jitter: vCPU steal time, hypervisor scheduling, and noisy neighbors widen the latency tail, and the tail is what the business feels. Mastering the physical layer means managing Non-Uniform Memory Access (NUMA) locality and pinning CPU C-states and P-states so cores never pay a wake-up penalty mid-transaction.

Redfish vs IPMI: out-of-band management

When a server’s operating system kernel panics, traditional remote access fails. Modern architects rely on the Baseboard Management Controller (BMC).

  • Evolution: We have shifted from the legacy IPMI protocol to the Redfish API, a RESTful HTTPS JSON interface standardized by the DMTF. IPMI 2.0 can in fact encrypt its session traffic over RMCP+, so the case against it is not plaintext but weak authentication: cipher suite 0 accepts any password, and the RAKP handshake hands a password hash to any unauthenticated caller (CVE-2013-4786).
  • Analogy: Redfish is the dedicated maintenance tunnel beneath the factory floor. It allows you to cycle power, update firmware, and configure RAID arrays programmatically even when the main factory lights (the OS) are off.

PXE and iPXE: how a server downloads its own identity

At scale, manual OS installation is obsolete. Servers utilize Network Bootstrapping (PXE/iPXE) to “download their identity.”

  1. DHCP: The server broadcasts a request; the DHCP server assigns an IP and returns the next-server and boot-file options pointing at a bootloader, which the firmware then fetches over TFTP (classic PXE) or HTTP (UEFI HTTP Boot and iPXE).
  2. iPXE: iPXE chainloads a kernel and initrd over HTTP(S) and passes them the URL of an answer file. Those answer files (Kickstart, cloud-init, or Ignition) are consumed by the installer or by first boot, not by iPXE itself. Ignition runs exactly once, in the initramfs, before the root filesystem is pivoted; cloud-init runs later in userspace and re-runs selected modules on every boot. Either path formats disks and injects SSH keys with no human in the loop.
  3. Efficiency: Tools like MAAS (Metal as a Service) and Tinkerbell provide an API-driven experience for physical hardware, drastically increasing speed-to-market compared to older-generation tools like Cobbler.

Layer 2: Data center networking and the spine-leaf fabric

The roadways and traffic lights: spine-leaf fabrics routed with eBGP and VXLAN, and host packet processing with eBPF, XDP, and DPDK.

Predictable latency is the lifeblood of the digital factory. Modern architecture has shifted to support “east-west” traffic, the massive data flow between internal services, rather than just “north-south” traffic to the internet.

Why spine-leaf replaced three-tier

To ensure uniform bandwidth, enterprises employ a Spine-Leaf Architecture.

  • Analogy: Imagine a city grid where every neighborhood (Leaf switch) is exactly two hops away from any other neighborhood via a high-speed highway (Spine switch). This guarantees that no part of the factory is “further away” than another, providing predictable microsecond latency.
  • The caveat: the guarantee is only as good as the uplink capacity you buy. A fabric built at a 3:1 oversubscription ratio is uniform right up to the moment the spine links saturate, which is where “uniform bandwidth” actually fails in practice.

eBPF and XDP vs iptables

Legacy tools like iptables evaluate rules sequentially, so matching cost grows linearly with the rule count. Its successor nftables blunts this with set-based lookups and is the supported default on modern distributions.

  • The Modern Standard: eBPF (Extended Berkeley Packet Filter) and XDP run sandboxed code directly in kernel space, with XDP executing at the driver level before the kernel even allocates a socket buffer.
  • The “So What?”: Handling packets ahead of the traditional Linux network stack drops per-packet cost to tens of nanoseconds, which is what lets a single core forward millions of packets per second and keeps the factory’s traffic lights from ever becoming the bottleneck.
Protocol Function Analogy Status
eBGP Underlay routing between leaf and spine switches, each with its own private ASN (RFC 7938). The GPS for internal logistics. Modern Standard
VXLAN Software-defined overlay tunnels (L2 over L3), typically with an EVPN control plane. Private tunnels for specific car models. Modern Standard
DPDK Userspace poll-mode drivers that bypass the kernel network stack entirely. The high-speed express lane. Ultra-Low Latency
iptables Sequential packet filtering. A manual checkpoint at every turn. Legacy (superseded by nftables)

Layer 3: Enterprise storage, block vs file vs object

The warehouses: block storage over SAN and NVMe-oF, file over NFS and SMB, object on S3, plus multipathing and software-defined storage with Ceph.

“State” is the most complex element of infrastructure. Choosing the wrong storage class causes catastrophic failure under load.

The three storage classes

  • Block Storage (SAN/NVMe-oF): The raw, high-speed bins for the assembly line. It uses protocols like iSCSI, Fibre Channel, or NVMe over Fabrics to present raw disks to the OS. Databases requiring high IOPS live here.
  • File Storage (NFS/SMB): Shared office filing cabinets. Best for shared application assets and configuration files.
  • Object Storage (S3): The infinite shipping yard. Accessed via HTTP REST APIs, it is the home for backups and massive AI datasets.

Multipathing and software-defined storage

In an enterprise, Host Multipathing (device-mapper multipath, managed by multipathd) is essential; it aggregates multiple physical paths, Fibre Channel or iSCSI, into one logical device so that a severed cable or a dead HBA does not take the volume offline. NVMe-oF is the exception worth knowing: it uses native NVMe multipathing with ANA rather than dm-multipath. While traditional arrays (Pure, NetApp) remain common, Software-Defined Storage (SDS) like Ceph or MinIO is the modern preference. SDS allows architects to build massive storage pools using commodity disks and scale to the petabyte level, trading array-vendor lock-in for operational complexity you now own yourself.

Layer 4: Virtualization, containers, and kernel tuning

Machine efficiency: VMs against containers on containerd, the namespaces and cgroups v2 that isolate them, and the sysctl values that keep a host alive under load.

To maximize utility, we isolate tasks on a single machine using different levels of abstraction.

VMs vs containers

  • Virtual Machines (VMs): A complete mobile home. They include a full kernel and virtualized hardware, offering a strong security boundary at the cost of memory overhead. The boot-time penalty is no longer a given: lightweight hypervisors such as Firecracker start a microVM in roughly 125 milliseconds.
  • Containers (containerd/CRI-O): A standardized shipping container. They share the host’s kernel and are isolated via Namespaces (isolating what a process can see, like PIDs and Mounts) and Cgroups v2 (limiting what it can consume, like CPU and RAM).

The sysctl values that matter under load

An architect must tune the kernel to prevent system collapse during traffic storms:

  • vm.swappiness=1: Minimizes, rather than eliminates, the kernel’s willingness to swap database memory out to slow disks. Setting it to 0 disables swapping almost entirely and makes the OOM killer fire sooner, which is why 1 is the usual floor.
  • vm.overcommit_memory=2: Switches the kernel to strict accounting, capping total commitments at swap plus vm.overcommit_ratio percent of RAM. Allocations then fail honestly (malloc returns NULL) instead of succeeding and being reclaimed later. It does not disable the OOM killer, and if you leave the ratio at its default of 50 you will strand a large share of your RAM, so this is only safe when tuned deliberately.
  • net.core.somaxconn=65535: Raises the ceiling on the accept queue for established connections waiting to be picked up (the default has been 4096 since Linux 5.4, up from 128). It is only a ceiling: the application must still pass a matching backlog to listen(), and the separate half-open queue is governed by net.ipv4.tcp_max_syn_backlog.

Layer 5: Kubernetes orchestration internals

The warehouse manager: the control plane and etcd, the kubelet, CNI and CSI plug-ins including Cilium, and event-driven scaling with KEDA and Karpenter.

Managing 10,000 containers manually is impossible. We require an automated “Warehouse Manager”, Kubernetes.

  • The Brain (Control Plane): The API server is the single component that talks to etcd, a Raft-based distributed key-value store holding the desired state of the cluster. The scheduler and controller managers never touch etcd directly; they act on that state through the API server.
  • The Worker (Kubelet): An agent on each server that ensures containers are running as instructed.
  • The Plugins:
    • CNI (Cilium): The modern standard. It uses eBPF for routing and security in place of iptables-based dataplanes. The usual contrast is with Calico’s default iptables mode, though Calico has shipped an eBPF dataplane of its own since 2020, so this is a dataplane choice more than a project choice.
    • CSI: Standardizes how persistent volumes (SAN LUNs) attach to ephemeral containers.
  • Intelligent Scaling: KEDA enables event-driven scaling (for example, scaling on message queue depth) and can scale workloads to zero, while Karpenter replaces node-group-shaped autoscaling by provisioning the “perfect-sized truck” (EC2 instance) for the pending pods directly. Karpenter is a CNCF project with a mature AWS provider and an Azure implementation behind AKS Node Auto Provisioning.

Layer 6: Infrastructure as Code, provisioning vs configuration

The blueprints and robots: provisioning with Terraform and OpenTofu, configuration with Ansible, and immutable golden images baked by Packer.

Reliability stems from the Declarative Paradigm: defining the “end state” rather than the “steps to get there.”

Terraform and OpenTofu state locking after the DynamoDB deprecation

  • Terraform/OpenTofu (The Architect): Builds the foundation and walls. To enable team collaboration, it uses State Locking to prevent multiple architects from corrupting the blueprint. On the S3 backend this is now a native conditional-write lock file (use_lockfile = true), added in Terraform 1.10 and matched in OpenTofu 1.10; the separate DynamoDB lock table was deprecated in Terraform 1.11 and should not be used in new builds.
  • Ansible (The Interior Decorator): Logs into servers to apply configurations. Its core value is Idempotency, so that running a playbook 100 times leaves the same state as running it once. Idempotency is a property of the modules you choose, not of Ansible itself: a bare shell or command task is only idempotent if you make it so with creates, removes, or a changed_when guard.

Immutability and golden images

Modern shops avoid “repairing the engine while driving.” Instead, they use Packer to bake “Golden Images.” When an update is needed, the old server is destroyed and a new one is deployed from the pre-baked image, eliminating Configuration Drift.

Layer 7: Identity and secrets under Zero Trust

Security and ID badges: dynamic credentials from HashiCorp Vault, workload identity with SPIFFE and SPIRE, and service-to-service mTLS.

In a Zero-Trust environment, we no longer trust anything simply because it is “inside the building.”

  • Secrets Management (HashiCorp Vault): Replaces static passwords with dynamic, short-lived credentials. With the Vault Agent Injector, an init container and sidecar authenticate using the pod’s own Kubernetes service account token, then render secrets into a shared in-memory (tmpfs) volume. The credential never touches disk and the application never holds a Vault token of its own; note that the secret lands in a mounted file, not literally inside the process’s heap.
  • Workload Identity (SPIFFE/SPIRE): Workloads, not machines, receive short-lived X.509 SVIDs carrying a cryptographically verifiable SPIFFE ID. Combined with mTLS (Mutual TLS), this ensures that only authorized services can communicate, even if they are in the same network.

Layer 8: CI/CD pipelines, push vs GitOps pull

The conveyor belt: the Jenkins push model against the ArgoCD GitOps pull model, and blue-green against canary releases.

The CI/CD Pipeline is the conveyor belt moving code from a designer’s desk to the factory floor.

  • The Push Model (Jenkins): The CI system “pushes” artifacts to production and therefore has to hold long-lived production credentials. Strategic Risk: if the Jenkins runner is compromised, so are those credentials, and the attacker inherits full access to the production environment.
  • The Pull/GitOps Model (ArgoCD): An agent inside the cluster watches the Git “blueprint” and pulls changes. This is more secure because no external system needs production credentials, and it can correct manual “drift” automatically, though only once you enable automated sync with selfHeal, which is off by default. The trade-off is that the Git repository and the image registry become the new blast radius.
  • Release Strategies: Blue-Green (switching to a second identical line) vs. Canary (testing a new part on 5% of the cars).

Layer 9: Observability, and golden signals vs RED

The control room: metrics in Prometheus, logs in ELK or Loki, traces in OpenTelemetry, and why the golden signals are not the RED method.

Uptime is a shallow metric. An architect requires deep telemetry to identify bottlenecks before they cause outages.

  • Metrics (Prometheus): The gauges. Using PromQL, architects query numerical time series like CPU utilization, saturation, and request rates.
  • Logs (ELK/Loki): The security cameras. Detailed text records of discrete events.
  • Tracing (OpenTelemetry): The GPS tracker on a single car part, tracing a transaction across 50 microservices to find a 10ms latency spike.

Golden signals and RED are not the same list

Two frameworks are routinely conflated, so it is worth separating them. Google’s four Golden Signals are Latency, Traffic, Errors, and Saturation. RED (Rate, Errors, Duration) is the request-scoped subset of that list. The working checklist below is RED plus Saturation.

  • Traffic / Rate: Are we handling the expected number of requests per second?
  • Errors: What is the percentage of HTTP 5xx responses, or of failed and rolled-back transactions?
  • Latency / Duration: Is the 99th percentile latency within our SLO? The SLA is the contractual promise; the SLO is the tighter internal target you actually alert on.
  • Saturation: How much “headroom” does the CPU or Disk I/O have before it throttles?

Debugging down the hierarchy

Infrastructure is a hierarchy. If a microservice stops processing messages, do not check the code first. Check the Data Layer for lock contention, then the Identity Layer for expired mTLS certificates, then the Network Layer for BGP route flapping. Master the layers to master the scale.

Glossary

Term In one line
ANA Asymmetric Namespace Access. How NVMe does its own multipathing, instead of dm-multipath
BMC Baseboard Management Controller. The tiny computer inside the server that runs when the server does not
cgroups v2 The kernel feature that caps what a process can consume
CNI Container Network Interface. The plug-in slot for Kubernetes networking
CSI Container Storage Interface. The plug-in slot for Kubernetes storage
DPDK Data Plane Development Kit. Userspace drivers that skip the kernel network stack
eBGP External BGP. The routing protocol used inside the fabric, one private ASN per switch
eBPF Sandboxed programs that run inside the Linux kernel without patching it
etcd The Raft-based key-value store holding Kubernetes’ desired state
Golden Signals Latency, Traffic, Errors, Saturation. Google’s four
Ignition Runs once in the initramfs to provision a machine on first boot
IPMI The legacy out-of-band management protocol, superseded by Redfish
Namespaces The kernel feature that caps what a process can see
NUMA Non-Uniform Memory Access. Memory attached to one CPU socket is slower from another
NVMe-oF NVMe over Fabrics. Block storage at NVMe latency across a network
PXE / iPXE Booting a machine off the network instead of a local disk
RED Rate, Errors, Duration. The request-scoped subset of the golden signals
Redfish The modern HTTPS JSON replacement for IPMI
SDS Software-Defined Storage. Storage pools built on commodity disks, such as Ceph
SLO / SLA The internal target you alert on, versus the contractual promise
SPIFFE / SPIRE A standard, and its implementation, for giving workloads verifiable identities
SVID The short-lived certificate a workload gets from SPIRE
VXLAN Overlay tunnels carrying layer 2 traffic across a layer 3 fabric
XDP eXpress Data Path. Runs eBPF at the driver, before the kernel allocates a buffer

References