Read each explanation as one step in the course’s reasoning. The concept link follows its introduction; open it for detail or continue to the next paragraph. The summaries connect the supplied material, while source references and qualifications remain in the lecture and concept notes.
Introduction to Computing Virtualization
Start with the need to share underused physical servers while retaining separate operating environments. The benefits lead to the layers and techniques needed to make that sharing possible.
Start with an application that no longer needs its own physical server. Computing virtualization presents CPU, memory, storage and networking as virtual hardware, allowing separate operating systems to share one physical machine. This introduces the need to control how those environments interact. Computing Virtualization
Sharing hardware is useful only if workloads remain sufficiently separated. Isolation addresses configuration conflicts, interference and security boundaries; consolidation places workloads on fewer physical servers. The benefit depends on keeping enough capacity and control to avoid harmful contention. VM Isolation and Server Consolidation
Consolidation also has an energy motivation: an idle server still consumes power. Fewer active machines can reduce that baseline, while PUE relates total facility energy use to IT-equipment energy use. Server efficiency and facility overhead are connected but distinct parts of the calculation. Server Power Consumption and PUE
Once the execution environment is represented in software, it can be created, paused, copied and relocated more easily. Migration lets infrastructure respond to maintenance or workload changes. This agility extends virtualization’s value beyond simply fitting more applications onto one server. Virtualization Agility and VM Migration
That flexibility changes hardware purchasing too. A pool of standard physical servers can supply virtual machines with different resource allocations. COTS describes commercially available standard products; OEM and ODM distinguish roles in product design and manufacture rather than different virtualization mechanisms. COTS Hardware and OEM vs ODM
To understand how this works, separate the layers. The physical host supplies resources, the guest OS runs inside a virtual machine, and the hypervisor controls virtualized access. These roles make it possible for a guest to operate without owning the underlying hardware. Virtual Machines and Hypervisors
Providing that illusion on x86 has required several approaches. Binary translation rewrites relevant execution sequences, paravirtualization makes guests cooperate, and hardware support supplies controlled guest execution. These techniques explain implementation choices beneath the same high-level VM abstraction. x86 Virtualization Techniques
The full lecture develops these ideas with its own examples. Lecture 02 - Introduction to Computing Virtualization
Computing Virtualization Technologies and Tools
The previous lecture established why VMs are useful. Now build the implementation from controlled CPU execution through memory and devices, then connect those mechanisms to management and migration.
CPU sharing begins with a control problem: ordinary guest work should run efficiently, while sensitive operations must remain under hypervisor authority. Trap and emulate transfers control for operations requiring mediation, after which the hypervisor supplies the appropriate virtual behavior. CPU Virtualization and Trap and Emulate
Some problematic operations cannot simply be handled by waiting for the expected trap. Dynamic binary translation rewrites relevant instruction blocks at runtime into safely executable sequences. This manages guest behavior without requiring the guest operating system’s source to be modified. Dynamic Binary Translation
Another solution changes the guest’s behavior explicitly. Paravirtualized software knows it is running under a hypervisor and requests services through hypercalls. The same cooperation principle can improve particular devices even when the rest of the guest uses hardware-assisted virtualization. Paravirtualization and Hypercalls
Processor extensions provide a further way to preserve control while executing guests. Hardware manages guest entry and exits according to configured conditions, with structures such as Intel’s VMCS recording state and controls. Guest execution mode and privilege rings are separate dimensions. Hardware-Assisted Virtualization and VMCS
CPU execution is not enough: guest memory must also reach the right physical backing. Guest virtual addresses map to guest physical addresses, which map to host physical memory. Shadow page tables compose mappings in software; EPT supports the additional translation in hardware. Memory Virtualization - Shadow Page Tables and EPT
Devices present another boundary between the guest and the host. Emulation reproduces a hardware interface, paravirtualized devices use cooperating drivers, and passthrough assigns hardware more directly. Compatibility, performance, sharing and migration requirements affect which approach is suitable. I-O Virtualization - Emulation PV and Passthrough
Virtio makes that guest-device cooperation concrete through standard interfaces. Virtqueues exchange buffer descriptors between guest frontends and backends, while vhost-net can move network backend processing into the host kernel. Follow buffer ownership and notifications to understand the data path. Virtio Virtqueues and vhost-net
The host also needs a way to adjust memory use as workloads change. A balloon driver cooperates with the guest to make memory available for host reclamation. This is a resource-management mechanism, distinct from the address-translation machinery that maps guest memory. Memory Ballooning
These mechanisms can be arranged in different system architectures. Hypervisor types describe placement relative to hardware and a general-purpose host OS. Placement is a separate question from whether CPU execution uses translation, cooperation or hardware assistance. Hypervisor Architectures
The Linux stack assigns these jobs to cooperating components. QEMU provides userspace machine and device models and VM lifecycle functions; KVM supplies kernel support for hardware-assisted guest execution. Distinguishing their roles explains why they are commonly used together. QEMU and KVM
Managing that stack introduces a layer above execution. Libvirt provides a management API, virsh exposes command-line operations, and virt-manager provides a graphical interface. These tools configure and control VMs; they are not the route taken by every guest instruction. Libvirt virsh and virt-manager
Now return to agility and ask what moving a VM requires. Cold migration moves a stopped environment; the lecture’s hot migration pauses and preserves execution state; live migration copies state while execution continues before a final handoff. Modified memory and device state complicate that transfer. VM Migration - Cold Hot and Live
The final extension places a hypervisor inside a VM so it can run guests of its own. The outer hypervisor still controls the real hardware, so inner virtualization operations need mediation. The familiar execution, memory and control problems therefore recur across an additional layer. Nested Virtualization
The full lecture develops these ideas with its own examples. Lecture 03 - Computing Virtualization Technologies and Tools
Computing Virtualization Technologies: Lecture 04 review
The separate 90-page deck revisits the implementation mechanisms without Lecture 03’s Linux tooling section. Start with controlled native execution: hardware assistance permits a guest kernel in non-root ring 0, with VM exits for events requiring supervision. Hardware-Assisted Virtualization and VMCS
Then trace GVA -> GPA -> HPA. Shadow tables compose this mapping; EPT/NPT makes the processor follow both stages. Neither method makes guest physical memory identical to machine physical memory. Guest page-table reads also need EPT translation, explaining the importance of translation caches. Memory Virtualization - Shadow Page Tables and EPT
Follow a device transfer separately: CPU EPT does not translate DMA, so assigned devices need IOMMU protection. SR-IOV provides assignable hardware functions rather than extra physical bandwidth. I-O Virtualization - Emulation PV and Passthrough
Finally, preserve the same ownership principle through nesting and migration. L0 retains final authority over memory; migration must preserve consistent execution state, and repeated dirty-page copying may fail to converge. Nested Virtualization, VM Migration - Cold Hot and Live.
The complete lecture map, worked examples and revision questions are in Lecture 04 - Computing Virtualization Technologies. Shared concepts keep their existing primary homes.
Computing Virtualization in Linux: Lecture 05
Begin with the separation of machine services and execution. QEMU provides the VM environment, while KVM lets compatible guest code execute under hardware control. A VM’s vCPU threads are scheduled by Linux; the guest independently schedules its own application threads. QEMU and KVM
Management tools configure that environment rather than process every instruction. Libvirt exposes an API; virsh and virt-manager provide command-line and graphical access. XML describes the machine and storage references rather than storing the guest installation itself. Libvirt virsh and virt-manager
Next identify the packet path. NAT translates outbound traffic; routed mode preserves addresses and needs a return route; bridging joins Ethernet connectivity; isolation omits configured external forwarding. Keep the device interface separate from network reachability. Linux VM Networking - NAT Routed Bridged and Isolated
Recreating the environment introduces another responsibility. Vagrant describes setup, a box provides a base, a provider supplies the execution backend and a provisioner configures guest software. Vagrant Boxes Providers and Provisioning
Finally follow a packet’s buffers and notifications. Virtio queues describe available buffers and completion; vhost-net moves frequent processing into the host kernel; eventfd-based mechanisms signal activity without carrying packet data. QEMU still supplies setup and control. Virtio Virtqueues and vhost-net
Read the complete lifecycle, source qualifications, demonstration flags and end-to-end browser-request example in Lecture 05 - Computing Virtualization in Linux. These notes organize the supplied teaching conversation; its printed-slide references are kept distinct from PDF page numbers.
Lightweight virtualization: Lecture 06
The earlier Linux stack runs a separate guest kernel in a VM. Now ask what can be separated when applications share the host kernel. Namespaces give processes distinct resource environments; cgroups regulate consumption of shared capacity. A private network view cannot stop a program exhausting memory by itself. Linux Process Isolation and Container Assembly
Begin with the budget. The lecture’s CPU groups have weights 1024 and 512, so continuously competing groups divide a single core approximately two-thirds to one-third. Extra workers divide their group’s allocation. Weights allow spare capacity to be used; a quota remains a ceiling, and a hard memory limit has different consequences from waiting for CPU time. Linux Cgroups - Weights Quotas and Memory Limits
Then follow identity. The same child is PID 10381 from the parent and PID 1 inside its new namespace. The parent remains outside that child’s PID view, explaining parent PID 0. Identifiers are scoped, while permissions still govern signalling and inspection. PID Namespaces and Process Creation
Next connect separate environments deliberately. A veth pair is already paired when created; placing one endpoint in another network namespace preserves the connection. Interface activation, addresses and onward routing remain separate configuration work. The host can inspect peer metadata rather than treat every namespace as a blind search. Network Namespaces and Veth Pairs
Filesystem separation needs the same care. Mounting attaches storage to a path; a new mount namespace initially inherits mount arrangements. A bind mount exposes the same underlying directory at another location, so writing through a private mount can still change shared files. Trace the /usr/bin to /mnt example before equating separate views with separate copies. Mount Namespaces and Bind Mounts
Finally separate the remaining identities and state: user namespaces scope privileges, UTS gives independent hostnames, IPC separates selected communication objects, and cgroup namespaces make membership paths relative. None of UID 0, PID 1 or cgroup / grants host-wide authority merely by its displayed value. User UTS IPC and Cgroup Namespaces
Combine these choices with resource and security policies to prepare a container’s process environment. The kernel remains shared, and runtimes automate the coordination. Read the full source map, command traces, qualifications and revision route in Lecture 06 - Lightweight Virtualization - Cgroups and Namespaces.
Lightweight virtualization: LXC and Docker
The previous lesson supplied the Linux mechanisms. This lecture asks how those mechanisms become usable container platforms and application workflows. A VM includes a guest kernel; a container shares the host kernel, so it can start quickly and use fewer resources while accepting a weaker isolation boundary. Linux Containers and Lightweight Virtualization
LXC combines namespaces, cgroups, filesystem setup and security policies into a machine-like container toolset. Docker uses related primitives but packages applications, dependencies and configuration into versioned images that can be shared through registries. LXC and Docker Roles and Tradeoffs
An image is a reusable template; a container is an instance with a writable layer. Read-only image layers can be shared and copy-on-write stores modifications. A volume or mounted host directory is needed when data must survive container removal. Docker Images Layers and Persistent Data
Docker’s default bridge, virtual Ethernet and NAT provide private networking. Port publishing exposes a container service through the host, while volume mounting provides storage; -p and -v solve different problems. Compose describes several services together, and Swarm or Kubernetes extend management across hosts. Docker Networking Lifecycle and Orchestration
A Dockerfile turns a build recipe into an image. Multistage builds keep compilers and temporary build files out of the final runtime image. Flatpak, Snap, the pets/cattle analogy and the source’s overhead table provide context, but the core exam route is the shared-kernel boundary, namespaces/cgroups, LXC versus Docker, images/layers, ports/volumes and Dockerfile builds. Dockerfiles Builds and Multistage Images
Introduction to cloud computing: Lecture 08
Virtualization provides flexible software servers, but cloud computing adds a service model around the datacenter. Customers request shared resources over a network, provision them quickly and release them when they are no longer needed. The NIST model identifies five essential characteristics: on-demand self-service, broad network access, resource pooling, rapid elasticity and measured service. Cloud Computing Definition and NIST Characteristics
The deployment model asks who operates the infrastructure: a public provider, the organization itself in a private cloud, or both in a hybrid cloud. The service model asks how much of the stack the provider manages: HaaS/colocation, IaaS, PaaS or SaaS. Moving toward SaaS reduces customer administration but also reduces control and may increase provider lock-in. Cloud Deployment Models, Cloud Service Models and Responsibility
The scale of a cloud requires a Cloud Management System above individual hypervisors. The CMS coordinates compute, storage, networking, tenants, monitoring, placement and migration through a unified control plane. Cloud Management Systems
Reliability depends on geography as well as software. A zone is a failure domain with independent power, cooling and networking; a region is a group of nearby cooperating zones. Multi-zone or multi-region deployment helps only when the application replicates state and handles failures correctly. Cloud Datacenter Zones and Regions
Connectivity is part of the cloud design. The public Internet is flexible but best-effort; dedicated links offer predictable private connectivity; cloud exchanges support private multi-cloud connections. An Internet Exchange Point supplies a Layer 2 fabric, while BGP establishes routing relationships across it. Cloud Network Interconnection
Edge computing and the cloud continuum: Lecture 08b
The public cloud may be too far away for low-latency control, too disconnected for critical operation, too bandwidth-intensive for raw sensor data, or unsuitable for sensitive local data. Edge computing moves selected processing and storage toward devices, factories, telecom sites and regional locations. Edge Computing and the Cloud Continuum
The continuum runs from deep-edge devices through on-premises and telco edge sites to regional cloud and hyperscale regions. Closer sites reduce latency and data movement but have less capacity and weaker economies of scale. Fog computing describes the intermediate distributed layer. The design choice must balance latency, reliability, data control, energy, cost and computing efficiency.
OpenStack: Lecture 09
The cloud management system from Lecture 08 becomes concrete in OpenStack. A user submits a request through a service API, the database records resource state, and internal messaging passes work to distributed services. This gives the tenant one way to request infrastructure across many physical hosts. OpenStack Control Plane and Messaging
Keystone supplies a token scoped to an identity and project, plus a catalog of service endpoints. Nova applies its policy, checks placement requirements and ranks eligible hosts. The compute agent on the chosen host uses the local virtualization stack to launch the VM. OpenStack Keystone Identity and Service Discovery · OpenStack Nova Scheduling and Instance Lifecycle
Neutron attaches the VM to an isolated tenant network and can carry its traffic across physical hosts. Glance supplies the starting disk image, Cinder provides durable block volumes, and Swift stores objects through an API. Heat calls the underlying services to build a stack from a template. OpenStack Neutron Networks and Packet Paths · OpenStack Images Storage and Heat Orchestration
Trace the deployment and review the worked questions in Lecture 09 - OpenStack. The next lecture shifts from provisioning infrastructure to designing and orchestrating the applications that use it.
Microservices and containers orchestration: Lecture 10
Edge and cloud platforms provide scalable infrastructure, but traditional software monoliths still struggle to use that scale cleanly. In a monolith—such as a classic LAMP-stack portal—frontend, business logic, and database code sit inside one tightly coupled codebase and deployment unit. As cloud software grew across four dimensions—software development, deployment speed, elastic performance, and software-based resilience—monoliths hit bottlenecks: tiny Pull Requests force full-application testing, and cloning a VM to help one busy module wastes capacity and risks duplicating a co-located database. Scalability and Software Monoliths
Breaking the monolith into microservices follows the UNIX philosophy and the Single-Responsibility Principle: each service owns one business task and typically its own database, allowing independent deployment and selective replication of busy components (as in Online Boutique). Unlike an embedded library—which shares only code and forces every caller to keep its own data and recompile on updates—a microservice is a live component (code plus data) called through an API, while developer-driven growth without a central blueprint creates a service-discovery challenge addressed by software catalogs such as Backstage. Microservices Architecture and Libraries vs Services
Decoupling carries real distributed-systems costs. Local function calls become network socket hops with latency, serialization overhead, and partial failures, pushing internal East-West traffic to at least 90% of datacenter traffic compared to external North-South requests. Because per-service databases remove single all-or-nothing cross-service transactions, workflows settle into eventual consistency and distributed tracing becomes essential—which is why teams without true scaling bottlenecks sometimes keep or return to monoliths. Microservices Costs Traffic and Eventual Consistency
Because VMs are too heavy for dozens of fine-grained services, containers serve as the standard packaging unit, requiring automated management across hosts. Dedicated orchestrators handle lifecycle, resource/affinity/label scheduling, replication, failure recovery, discovery, and virtual networking at machine timescale rather than human timescale. Kubernetes became the de-facto standard through declarative self-healing controllers, CRD/operator extensibility, vendor neutrality, and a uniform API across clouds and local clusters—while simpler setups still rightly prefer Docker Compose, Swarm, Nomad, or serverless containers. Container Orchestration and Kubernetes
Read the complete slide-by-slide map, comparative tables, failure traces, and retrieval checks in Lecture 10 - Microservices and Containers Orchestration.
Kubernetes: Lecture 11
Lecture 10 established why Kubernetes became the standard orchestrator; Lecture 11 opens how Kubernetes actually works on the user side, inside the cluster, and across extensions. Rather than exposing low-level VMs like OpenStack, Kubernetes centers on declarative YAML resources (apiVersion, kind, metadata, spec, status) reconciled continuously by control loops. Kubernetes Principles Controllers and Resource Model
Inside a Namespace (which provides RBAC scoping without default pod firewalls), the smallest execution unit is a Pod—one or more tightly coupled containers scheduled on a single node, sharing net, ipc, and uts namespaces while keeping separate mnt filesystems unless Volumes are attached. Workload controllers automate the cattle model across ReplicaSet, versioned Deployment, per-node DaemonSet, and identity-preserving StatefulSet, while ConfigMap and Secret inject configuration externally. Kubernetes Pods Sidecars and Workload Controllers
Because Pods are ephemeral, Service objects provide stable ClusterIPs and Cluster DNS (ClusterIP, NodePort, LoadBalancer, outbound ExternalName, and non-proxied Headless), and Ingress acts as an HTTP/HTTPS reverse proxy routing multiple hosts/paths behind one IP. Multi-tenancy combines RBAC, NetworkPolicy, namespace-wide ResourceQuota, and per-Pod/Container LimitRange, while HPA scales replicas dynamically from metrics. Kubernetes Services Ingress and Reverse Proxy, Kubernetes Multi-Tenancy Quotas and Autoscaling
Under the hood, Control Plane components (kube-apiserver, Raft-backed etcd, kube-scheduler, kube-controller-manager, cloud-controller-manager) and Worker Nodes (kubelet, kube-proxy, container runtime) never call each other directly—every step in scheduling a Deployment happens by watching and updating objects through kube-apiserver. Kubernetes Architecture Control Plane and Scheduling Flow
Finally, instead of bundling services into a monolithic core like OpenStack’s “big tent”, Kubernetes stays minimal and delegates growth to CRDs + Operators, the API Aggregation Layer (APIService), Mutating and Validating Admission Webhooks, Custom Schedulers, and standardized CRI, CSI, and CNI driver interfaces. Kubernetes Extensibility CRDs Operators Webhooks and Drivers
Read the full three-part route, PDF-to-printed slide map, and retrieval checks in Lecture 11 - Kubernetes.
Cloud-native applications and the 12-Factor App: Lecture 12
Lecture 11 explained how Kubernetes runs and extends clusters; Lecture 12 steps back to the application design rules that make microservices actually portable and resilient on top of Kubernetes. Following the 2011 Heroku 12-Factor Manifesto, a cloud-native app starts with one Git codebase containing code, Dockerfiles, and Kubernetes YAMLs, isolates code dependencies in self-contained multi-stage images, injects environment-specific config and cluster metadata externally (env, ConfigMap, Secret, and the Downward API), treats databases as attached backing services behind Service abstractions, and separates Build -> Release -> Run using tools such as Kustomize and Helm charts. 12-Factor App - Codebase Dependencies Config Backing Services and Releases
At runtime, processes stay stateless and share nothing—avoiding sticky sessions—and export themselves directly via port binding (ClusterIP) instead of external application servers. Horizontal scaling (scale out via one-thread-per-process replicas, HPA, VPA, and Cluster Autoscaler) overcomes single-machine limits except in tightly coupled shared-memory HPC workloads, while Pod disposability (“cattle” with LivenessProbe restarts and graceful connection housekeeping) enables zero-downtime upgrades across Ramped, Blue/Green, Canary, and Service-Mesh-powered A/B Testing and Shadow deployments. 12-Factor App - Statelessness Scaling Disposability and Deployment Strategies
To keep development, staging, and production consistent, teams close the time, personnel, and tools parity gaps with declarative CI/CD pipelines, GitOps (ArgoCD, JenkinsX), Infrastructure as Code, and local clusters (Minikube, MicroK8s, KIND). Because disposable Pods lose local files and kubectl logs vanishes on container crashes, apps stream logs to stdout for node-level DaemonSet collectors (Fluentd/FluentBit) to enrich and ship to Elasticsearch or Loki, while one-off admin tasks like database schema migrations run separately as versioned Kubernetes Jobs or InitContainers shipped alongside the app release. 12-Factor App - Dev-Prod Parity Logging Streams and One-Off Admin Operations
Finally, running distributed microservices outgrows traditional black-box up/down checks that only catch known failures after they occur. Observability acts as a superset of monitoring through three pillars—Logs, Metrics, and Traces (such as Jaeger dependency graphs)—backed by OpenMetrics (Counter, Gauge, Histogram, Summary) and Prometheus’s service-discovery pull model, Pushgateway for short-lived exit jobs, TSDB, PromQL, and Alertmanager. Observability Metrics and Prometheus
Read the complete slide map, comparisons, and retrieval checks in Lecture 12 - Cloud Native Applications and the 12-Factor App.
Service mesh and Istio: Lecture 13
Lecture 11 introduced Kubernetes’ basic DNS and L3/4 service abstraction, and Lecture 12 showed that A/B Testing and Shadow deployments require finer L7 traffic control. As microservices multiply into hundreds of developer-driven components, teams need circuit breakers (catching slow or failing calls that simple Kubernetes /health checks miss), dynamic version routing, mutual TLS, and distributed telemetry. Embedding those features as code libraries bloats polyglot services and forces recompilation, while routing every internal East-West call through one central API Gateway creates an unscalable bottleneck. A Service Mesh instead places lightweight proxies beside services or nodes for direct East-West hops while a global control plane distributes policies out of the request path. Service Mesh Motivation - Libraries API Gateway and Circuit Breaking
In Istio, the Data Plane runs C++ Envoy proxies while the Control Plane translates Kubernetes YAML into proxy configurations without touching live user requests. In Sidecar Mode, Kubernetes MutatingWebhooks inject an Envoy container into every Pod, where shared-namespace iptables rules transparently intercept inbound veth traffic and hand it to the application over loopback. To overcome sidecar Pod restarts, worst-case per-Pod resource reservations, and expensive HTTP parsing, Ambient Mode slices the data plane into an always-on Layer 4 Secure Overlay (ztunnel per node plus istio-cni socket setup) and optional per-namespace Envoy waypoint proxies for Layer 7 features. Envoy Proxy and Istio Sidecar vs Ambient Mode
Operators configure this mesh through five declarative resources: VirtualService for ordered L7 routing rules, DestinationRule for post-routing policies such as load balancing and subsets, Gateway for standalone edge proxies handling North-South ingress and egress, ServiceEntry for external dependencies, and Sidecar for proxy scope isolation. Istio Traffic Management - VirtualServices DestinationRules and Gateways
Read the full source map, YAML walkthroughs, iptables trace, and retrieval checks in Lecture 13 - Service Mesh and Istio.
DevOps and GitOps: Lecture 14
Lecture 12 showed that closing Factor X’s dev/prod parity gaps requires CI/CD, IaC, and GitOps, while Lectures 11 and 13 relied on declarative YAML controllers. Lecture 14 steps through the complete operational automation lifecycle that builds, provisions, and reconciles both applications and infrastructure. It starts by ending the developer-operations silo through DevOps’s eight-phase infinity loop and distinguishing Continuous Integration (BUILD -> TEST -> MERGE), Continuous Delivery (ready in repository, manual production release), and Continuous Deployment (automated release criteria straight to production). DevOps and CI-CD Pipelines
Automating application builds still leaves a bottleneck if servers, networks, and load balancers are clicked together manually. Infrastructure as Code (IaC) codifies those resources into version-controlled text files; HashiCorp Terraform—and its Linux Foundation drop-in fork OpenTofu—communicates across cloud and on-premises APIs via Providers using a three-stage Write -> Plan -> Apply workflow that previews changes against the State File and applies them in dependency order. Infrastructure as Code Terraform and OpenTofu
GitOps (Git + Operations) closes the loop by making the Git repository the single source of truth ("Config files" : "Infrastructure" = "App Source Code" : "App binaries"). Across four components—Git repo, CD pipeline, GitOps deployment tool (such as ArgoCD), and monitoring—code commits trigger image builds and config updates that automatically synchronize across clusters, bringing auditability and fast rollbacks alongside risks such as configuration drift and concentrated repository security (which requires keeping secret keys out of plaintext Git). GitOps Workflow Components and Tradeoffs
Underpinning Terraform, GitOps, and Kubernetes alike is declarative configuration: specifying what end state is desired rather than how to reach it step by step. This guarantees idempotency—applying the same configuration repeatedly yields the exact same state—alongside clearer Git collaboration, scalable fleet management, easier compliance audits, and rapid disaster recovery. Declarative Configuration and Idempotency
Read the complete slide map, workflow traces, secret-handling patterns, and retrieval checks in Lecture 14 - DevOps and GitOps.
Energy considerations in data center design: Lecture 15
Lecture 02 introduced server idle power and PUE as reasons to consolidate virtual machines, and Lectures 08–14 traced how cloud platforms and automated software stacks scale across large data centers. Lecture 15 examines the physical energy and sustainability consequences of running those facilities. Because detailed utility reports are rarely public, researchers estimate regional electricity consumption bottom-up across servers, storage, and networks scaled by Partial PUE—while inside the building, servers (drawing ~50% of peak power even when idle, with Intel RAPL missing non-SoC OTHER hardware) and cooling together consume roughly 75% of total power alongside short-runtime UPS bridges and hierarchical DCNs. Data Center Power Estimation and Component Breakdown
Measuring environmental impact requires going beyond facility power overhead alone. Schneider Electric’s framework organizes 23 sustainability metrics across Energy, GHG Emissions, Water, Waste, and Land & Biodiversity; within Energy, PUE captures facility overhead (with Google’s detailed accounting subtracting non-IT substation loads down to ~1.10 vs. ~1.57 on-premise), while the Renewable Energy Factor (REF) and Energy Reuse Factor (ERF) measure 24/7 clean electricity sourcing and exported waste heat. Data Center Sustainability Metrics - PUE REF and ERF
To cut both power and carbon emissions, operators target cooling and workload timing: air-side and geothermal free cooling eliminate energy-hungry compressors, two-phase immersion submerges hardware directly in 49 °C-boiling dielectric liquid without hardware pumps, subsea deployments such as Project Natick seal nitrogen-filled vessels behind external ocean heat exchangers, and Google’s carbon-intelligent computing shifts non-urgent batch tasks to cleaner grid hours toward 24/7 Carbon-Free Energy. Data Center Cooling and Carbon-Aware Computing
Read the full source map, Google PUE formula walkthrough, cooling comparisons, and retrieval checks in Lecture 15 - Energy Considerations in Data Center Design.
Managing bare-metal servers: Lecture 16
Lecture 15 examined the power and cooling demands of physical data centers, while earlier lectures built OpenStack, Kubernetes, and declarative GitOps stacks on top of servers. Lecture 16 connects those worlds by showing how physical bare-metal machines are wired, remotely controlled, and turned into on-demand Kubernetes clusters. Starting at the rack level, operators trade Top-of-Rack (ToR) cabling simplicity and fault isolation against End-of-Row (EoR) switch consolidation—usually combining both in hybrid rows—while wiring servers redundantly to at least two switches for fault tolerance, zero-downtime firmware upgrades, and link aggregation. Inside each server, leaving data NICs modular accommodates different speeds and SmartNICs, strict front-to-rear airflow requires passive datacenter GPUs rather than orthogonal active workstation cards, and traffic splits across Management, Data, and Special-purpose networks. Datacenter Racks Cabling Redundancy and Server Hardware
Before an operating system runs—to configure RAID or SR-IOV, toggle BIOS Secure Boot/TPM, power on a shut-down host, or install Linux—administrators cannot rely on SSH. Replacing physical KVM switches that required walking into restricted data centers, modern servers embed an always-on Baseboard Management Controller (BMC) with its own CPU, firmware, dedicated NIC, and separate IP on a security-critical 1GbE management network, providing browser-based iKVM consoles alongside REST-based Redfish automation (preferred over legacy IPMI, and supported by Dell iDRAC and HPE iLO) while Intel AMT offers a lighter single-multiplexed-NIC alternative for vPro client PCs. Remote Server Management - KVM BMC Redfish and Intel AMT
With programmable Redfish BMCs in place, a dedicated management Kubernetes cluster can manage bare-metal hardware declaratively rather than forcing slow manual installs. Although most Kubernetes deployments today still run on VMs because VMs provision in minutes, isolate tenants into separate clusters, and coexist with traditional VM workloads, bare metal excels at low-latency HPC and direct GPU/FPGA access; combining Cluster API with Metal3 (CAPM3 -> Bare Metal Operator -> Ironic) drives physical servers through the BMC over the management network and continuously reconciles any manual drift. Bare-Metal Kubernetes - Cluster API and Metal3
Read the complete slide map, end-to-end provisioning trace, and retrieval checks in Lecture 16 - Managing Bare-Metal Servers.
AI in Kubernetes: Lecture 17
Lecture 16 showed how physical servers—including GPU-equipped hosts—are provisioned into bare-metal Kubernetes clusters, while Lecture 11 introduced Kubernetes scheduling and Operators. Lecture 17 focuses on running AI workloads inside Kubernetes, starting with how GPUs become schedulable resources. Because core Kubernetes only counts CPU and RAM natively, vendors register accelerators through the Device Plugin Framework so kubelet advertises healthy GPUs to the API server (nvidia.com/gpu: 1); to avoid fragile manual matching of drivers, runtimes, and CUDA libraries, the NVIDIA GPU Operator automates containerized drivers per node (Driver Manager), runtime injection (Container Toolkit), node labeling (GPU Feature Discovery), Prometheus telemetry (DCGM), and CUDA validation—though default integer allocation still leaves many datacenter GPUs around ~30% utilized under the One-GPU-Per-Pod constraint. Kubernetes GPU Orchestration and NVIDIA GPU Operator
Sharing a single GPU across multiple workloads solves that integer lock-in across three escalating isolation levels. Time-slicing oversubscribes via virtual replicas and temporal context switches with zero memory or fault isolation; CUDA Multi-Process Service (MPS) funnels multiple clients through one MPS Server context so Hyper-Q runs kernels concurrently within hard VRAM caps, yet shared L2 cache and memory bandwidth create a “Busy Neighbour” slowdown on memory-heavy jobs; and Multi-Instance GPU (MIG) on Ampere and newer top-tier datacenter GPUs partitions SMs, L2 cache, and DRAM bandwidth in hardware for strict multi-tenant SLAs (configured via Single or Mixed MIG and dynamically reshaped by the MIG Manager, while L4/L40S/T4/A10 cards rely on MPS or time-slicing). GPU Sharing and Partitioning - Time-Slicing MPS and MIG
Even with MPS or MIG, Kubernetes binds GPU allocations for an entire Pod’s lifetime, leaving slices idle between bursts of inference or analytics traffic. Function-as-a-Service (FaaS) platforms (OpenFaaS, Knative, Fission, KServe, KubeRay) recover those idle cycles with event-driven, short-lived executions, while Ray Core parallelizes Python functions (@ray.remote stateless Tasks and stateful Actors) and KubeRay reconciles RayCluster custom resources—separating the coordinator headGroupSpec (GCS, Dashboard, Client) from autoscalable workerGroupSpecs. Serverless AI on Kubernetes - FaaS Ray Core and KubeRay
Read the complete slide map, comparison tables, and retrieval checks in Lecture 17 - AI in Kubernetes.