Course Hub

Jump to lecture notes, reusable concepts, source slides, and exam preparation.

Where to find concepts

Concept folders follow the lecture titles. Shared concepts stay in the lecture that introduces them and remain linked from later lessons.

Connected course summary

Follow the explanations below to see how the ideas build on each other. Each concept is introduced before its link. Open Cloud Computing Technologies - Connected Reading Guide to read the summary on its own.

Cloud Computing Technologies - Connected Reading Guide

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.

Link to original

Information

Professor for the supplied lectures: Fulvio Risso, Politecnico di Torino (with Stefano Galantino as co-author on Lectures 10–14 and presenter on Lectures 15 and 17, Alex Palesandro as co-author on Lecture 12, Jacopo Marino as co-author on Lecture 14, and adapted from Francesco Cappa on Lecture 16).

Semester: 2026-27, following the university dashboard.
Credits and exam format: not provided in the supplied material.

🚀 Current Focus

📚 Lectures

Lecture numbers 02, 03, 04, 05, 06, 07, 08, 08b and 09 follow the supplied filenames. Lecture 04 is a separate 90-page deck that overlaps Lecture 03 and reuses its concept notes. Lecture 01 has not been supplied. Lecture 03 has 116 PDF pages with printed slide-number gaps. The Lecture 08 and 08b source PDFs remain local in Downloads.

Lecture 04 concepts stay in their existing primary Lecture 02/03 folders; no duplicate concept set is created. Lecture 05 documents the supplied teaching conversation about the separate 36-page Linux deck, with printed-slide references inherited from that explanation.

Lecture 06 covers the separate 35-page process-isolation deck. Its PDF page map distinguishes the printed slide numbers; cgroup and namespace concepts have their own Lecture 06 folder.

Lecture 09 follows the supplied OpenStack filename. Its 79 PDF pages cover printed slides 1 and 3–80. Lectures 10–17 use their positions in this course sequence.

Lecture 10 covers the 25-page Microservices and containers orchestration deck (printed slides 1–22 and 24–26, CC BY-NC-SA) supplied directly in the study session without copying the original PDF into Resources/.

Lecture 11 covers the 87-page Kubernetes deck (printed slides 1–98 with gaps) supplied directly in the study session without copying the original PDF into Resources/.

Lecture 12 covers the 35-page Cloud Native Applications: the 12-Factors App Best Practices deck (printed slides 1 and 3–36) supplied directly in the study session without copying the original PDF into Resources/.

Lecture 13 covers the 36-page Service Mesh and Istio deck (printed slides 1, 3–17, and 19–38) supplied directly in the study session without copying the original PDF into Resources/.

Lecture 14 covers the 38-page DevOps and GitOps deck (printed slides 1–38) supplied directly in the study session without copying the original PDF into Resources/.

Lecture 15 covers the 56-page Energy Considerations in Data Center Design deck (printed slides 1–7, 9–56, and 62) supplied directly in the study session without copying the original PDF into Resources/.

Lecture 16 covers the 36-page Managing bare-metal servers deck (printed slides 1 and 3–37) supplied directly in the study session without copying the original PDF into Resources/.

Lecture 17 covers the 41-page AI in Kubernetes deck (printed slides 1–27 and 30–44) supplied directly in the study session without copying the original PDF into Resources/.

🧪 Labs

No lab material supplied yet. Add lab notes under 50 Labs/Cloud Computing Technologies/ when needed, using Lab Template.

✏️ Exercises

No exercise sheet supplied yet. Use Exercise Template and link exercises to the concepts they test.

📦 Assignments

No assignments or deadlines supplied yet.

🧠 Concepts

Motivation and benefits

Infrastructure and implementation

CPU virtualization

Memory and devices

Linux stack, management, and mobility

Process isolation and containers

LXC and Docker

Cloud computing and edge

OpenStack

Microservices and container orchestration

Kubernetes

Cloud-native applications, 12-Factor App, and observability

Service mesh and Istio

DevOps, Infrastructure as Code, and GitOps

Data center energy and sustainability

Managing bare-metal servers

AI in Kubernetes

❓ Questions

  • Which isolation guarantees depend on configuration and resource allocation?
  • When does further consolidation harm service quality?
  • How does virtualization enable cooperation across multiple physical servers?
  • Why can ring 0 guest code still be isolated from the real host?
  • What makes EPT page walks expensive, and how do TLBs help?
  • Which migration state is harder to preserve with passthrough devices?

📖 Resources

Source figures and product names are recorded as lecture material, including their historical dates; they are not a current market survey.

🎯 Exam Preparation

  • Trace a scoped OpenStack VM request from Keystone through Nova scheduling to the host

  • Trace a tenant packet across hosts and explain when a floating IP helps reach the VM

  • Choose among an image, instance-local disk, Cinder volume and Swift object, then explain how Heat composes resources

  • Explain the historical one-application-per-server rule

  • Distinguish configuration, temporal, and spatial isolation

  • Explain hardware sharing and the lecture’s lift-and-shift terminology

  • Explain idle power, consolidation, cooling overhead, and PUE

  • Describe agility, migration, duplication, and disaster recovery

  • Identify virtualization overhead and special-device limitations

  • Distinguish COTS hardware, OEM, and ODM as used in the slides

  • Draw the physical hardware / host OS / hypervisor / VM / guest OS stack

  • Explain partitioning versus arbitration of shared resources

  • Compare binary translation, paravirtualization, and the lecture’s hybrid virtualization

  • Explain why virtualization alone does not describe an entire cloud platform

Technologies and tools

  • State the Popek-Goldberg equivalence, efficiency, and resource-control requirements
  • Distinguish sensitive and privileged instructions; explain classical x86 T&E limitations
  • Compare DBT, classical PV, and hardware-assisted virtualization
  • Distinguish rings from VMX modes and guest syscalls from VM exits
  • Explain VMCS state/control and entry/exit overhead
  • Trace GVA -> GPA -> HPA and compare shadow page tables with EPT/NPT
  • Explain nested page-walk cost, tagged TLBs, and huge pages
  • Compare emulated devices, PV devices, and direct assignment
  • Distinguish IOMMU DMA protection from SR-IOV virtual functions
  • Explain ballooning and the limits of memory overcommitment
  • Use the lecture’s Type 1 / Type 2 / hybrid architecture taxonomy
  • Trace QEMU -> KVM -> guest and explain vCPU host threads
  • Distinguish libvirt, virsh, and virt-manager responsibilities
  • Explain Virtio queues, scatter-gather, vhost-net, ioeventfd, and irqfd
  • Compare cold, hot, and live migration state requirements
  • Explain L0/L1/L2, composed VMCS, and nested EPT

Linux implementation

  • Trace guest scheduling versus host vCPU-thread scheduling
  • Explain why KVM execution does not remove QEMU device/lifecycle responsibilities
  • Distinguish guest exceptions, VM exits and returns to QEMU
  • Compare NAT, routed, bridged and isolated guest networks
  • Distinguish Vagrant boxes, providers and provisioners
  • Trace buffer ownership separately from eventfd notifications

Lightweight virtualization

  • Explain what namespaces separate and what cgroups control
  • Calculate group and per-worker CPU shares; distinguish weights from quotas
  • Trace one process across host/child PID views, including parent PID 0
  • Inspect a veth peer without confusing network membership with PID ancestry
  • Explain unshare --mount and the source bind-mount trace
  • Distinguish private mount arrangements from shared file contents
  • Explain namespace UID 0, UTS hostname and cgroup-root view
  • Describe container assembly and the shared-kernel boundary
  • Explain why lightweight virtualization reduces VM overhead
  • Distinguish namespaces, cgroups, LXC and Docker
  • Trace image layers, copy-on-write, containers and volumes
  • Explain Docker port publishing versus volume mounting
  • Describe Dockerfile builds, multistage images and basic orchestration
  • State the five NIST cloud characteristics
  • Distinguish public, private and hybrid clouds
  • Compare HaaS, IaaS, PaaS and SaaS by responsibility and control
  • Explain why a Cloud Management System is needed above hypervisors
  • Distinguish zones, regions and failure domains
  • Explain edge/fog computing and the cloud continuum
  • Compare Internet, dedicated and cloud-exchange connectivity
  • Distinguish bandwidth, latency, reliability, power and energy

Microservices and container orchestration

  • Explain the four dimensions of scalability and why monoliths hit development and deployment bottlenecks
  • Compare monolithic and microservices architectures across all nine dimensions (unit design, reuse, communication, tech stack, data, deployment, maintainability, resiliency, scalability)
  • Distinguish embedded libraries (code only) from live microservices (code + data) and explain why software catalogs (e.g., Backstage) are needed
  • Classify North-South vs. East-West traffic and explain socket latency, serialization, partial failures, and eventual consistency
  • Explain why containers fit microservices and contrast manual deployment, scripting, and dedicated orchestrators
  • Distinguish Must-Have vs. Nice-to-Have orchestrator capabilities and explain why Kubernetes won (declarative self-healing, CRDs/operators, CNCF, uniform API) vs. when simpler alternatives fit better

Kubernetes

  • Compare imperative vs. declarative control and trace a reconciliation loop (spec vs. status, labels vs. annotations)
  • Explain Pod namespace sharing (net, ipc, uts vs. pid, mnt, user), sidecars, init containers, and privileged pods
  • Distinguish ReplicaSet, Deployment, DaemonSet, and StatefulSet (Pets vs. Cattle) and compare ConfigMap vs. Secret
  • Classify all five Service types (ClusterIP, NodePort, LoadBalancer, outbound ExternalName, Headless) and explain Ingress vs. forward proxy
  • Distinguish NetworkPolicy, ResourceQuota (Requests vs. Limits), LimitRange, and HPA
  • Identify Control Plane (kube-apiserver, etcd, kube-scheduler, kube-controller-manager, cloud-controller-manager) and Worker Node (kubelet, kube-proxy, runtime) roles and trace the 7-step Deployment scheduling flow
  • Explain CRDs + Operators, APIService (Aggregation Layer), Mutating/Validating Admission Webhooks, Custom Schedulers, and CRI/CSI/CNI

Cloud-native applications, 12-Factor App, and observability

  • Distinguish code dependencies (Dockerfile, Factor II) from external configuration (env, ConfigMap, Secret, Downward API fieldRef, Factor III) and network-attached backing services (Service, Factor IV)
  • Trace Build -> Release -> Run and explain the four parts of a Kubernetes release alongside Helm charts (apt/yum analogy) vs. Kustomize
  • Explain why sticky sessions break Factor VI, VIII, and IX, and state the shared-memory HPC exception to horizontal scaling
  • Compare Recreate, Ramped/Rolling, Blue/Green, Canary, A/B Testing, and Shadow deployment strategies, including which require a Service Mesh
  • Match Factor X’s three parity gaps (time, personnel, tools) to CI/CD, GitOps (ArgoCD), IaC, and local clusters (Minikube, MicroK8s, KIND)
  • Explain stdout streaming vs. kubectl logs crash loss, DaemonSet log collectors (Fluentd/FluentBit), and Job vs. InitContainer for versioned admin tasks
  • Contrast black-box monitoring with observability (Logs, Metrics, Traces), classify the 4 OpenMetrics types, and trace Prometheus pull scraping, Pushgateway, TSDB, PromQL, and Alertmanager

Service mesh and Istio

  • Explain why Kubernetes DNS and L3/4 load balancing are insufficient and contrast embedded libraries, a central API Gateway (8-hop East-West bottleneck), and a Service Mesh
  • Explain circuit breaking (and why it catches failures Kubernetes /health probes miss) alongside %-based dynamic request routing
  • Distinguish Istio’s Data Plane (Envoy / ztunnel) from its Control Plane and trace the 6-step iptables sidecar interception flow (including why loopback avoids a veth loop)
  • Compare Istio Sidecar Mode (MutatingWebhooks, 3 limitations) with Ambient Mode (ztunnel L4 overlay, opt-in L7 waypoint proxies, istio-cni)
  • Distinguish VirtualService, DestinationRule, Gateway, ServiceEntry, and Sidecar and trace VirtualService and Gateway YAML rules

DevOps and GitOps

  • Distinguish Continuous Integration (CI), Continuous Delivery (CD), and Continuous Deployment, and explain why CD requires CI in place
  • Name the eight phases of the DevOps infinity loop across development and operations
  • Explain Infrastructure as Code (IaC), Terraform Providers, and trace the Write -> Plan -> Apply workflow (including dependency ordering and the State File) alongside OpenTofu’s drop-in role
  • Identify the four GitOps workflow components, trace the end-to-end app-commit-to-cluster cycle (including ArgoCD sync), and explain how secret keys are handled outside plaintext Git
  • Contrast GitOps pros and cons—especially configuration drift and Git repository security concentration
  • Distinguish imperative vs. declarative configuration and explain idempotency with a concrete example

Energy considerations in data center design

  • Trace the bottom-up data center energy calculation model and explain why 2030 global forecasts vary from 500 to 3,000 TWh/a
  • Distinguish direct vs. indirect data center power, explain the ~50% idle server baseline, and state what Intel RAPL measures vs. misses (OTHER)
  • Contrast UPS ride-through vs. standby diesel generators and explain the 75% Servers + Cooling share
  • List Schneider Electric’s 5 sustainability categories, compute PUE, explain Google’s detailed PUE subtraction terms and seasonal oscillations (~1.10 vs. on-premise ~1.57), and compare PUE with REF and ERF
  • Compare air-side/geothermal free cooling, two-phase dielectric immersion cooling, Project Natick’s sealed seawater cooling, and Google’s carbon-intelligent workload time-shifting

Managing bare-metal servers

  • Compare Top-of-Rack (ToR), End-of-Row (EoR), and hybrid cabling layouts, and state all three reasons servers connect to at least two switches
  • Explain why datacenter servers omit built-in data NICs, contrast passive datacenter GPUs with active orthogonal workstation GPUs, and distinguish the Management, Data, and Special-purpose networks
  • Contrast physical KVM switches, browser iKVM over a BMC, and Redfish vs. legacy IPMI automation—and explain why breaching the 1GbE management network is critical
  • Distinguish a server BMC from Intel AMT (vPro target devices and single multiplexed NIC)
  • Weigh bare-metal vs. VM-based Kubernetes (and why VMs still dominate today), then trace Cluster API + Metal3 (CAPM3 -> Bare Metal Operator -> Ironic -> BMC) reconciliation

AI in Kubernetes

  • Trace how the Kubernetes Device Plugin Framework exposes GPUs to kubelet and Pods, and distinguish Driver Manager, Container Toolkit, GFD, DCGM, and Validator Pods inside the NVIDIA GPU Operator
  • Explain the One-GPU-Per-Pod ~30% utilization problem and compare Time-Slicing, MPS (Hyper-Q + Busy Neighbour shared L2/bandwidth), and MIG (GPC hardware isolation)
  • Contrast Single MIG vs. Mixed MIG, explain MIG Manager runtime re-partitioning, and identify which GPUs support MIG vs. L4/L40S/T4/A10
  • Explain why static Pod-lifetime GPU allocations still waste cycles on bursty traffic and how FaaS (OpenFaaS, Knative, Fission, KServe, KubeRay) improves multiplexing
  • Distinguish Ray Core @ray.remote stateless Tasks from stateful Actors and map headGroupSpec vs. workerGroupSpecs (replicas, minReplicas, maxReplicas) in a RayCluster CRD

Practice without notes

  • Explain why three lightly loaded physical servers might be consolidated
  • Calculate PUE for a datacenter with 180 kW facility power and 100 kW IT power
  • Explain why cloning a VM does not automatically make an application scale
  • Count translation accesses in the lecture’s fully uncached four-level EPT example
  • Draw the Virtio network path with a QEMU backend and with vhost-net
  • List the state needed to preserve a running VM during migration

🗂 Course Structure

10 Courses/
├── Cloud Computing Technologies.md
└── Cloud Computing Technologies/
    ├── Lectures/
    │   ├── Lecture 02 - Introduction to Computing Virtualization.md
    │   ├── Lecture 03 - Computing Virtualization Technologies and Tools.md
    │   ├── Lecture 04 - Computing Virtualization Technologies.md
    │   ├── Lecture 05 - Computing Virtualization in Linux.md
    │   ├── Lecture 06 - Lightweight Virtualization - Cgroups and Namespaces.md
    │   ├── Lecture 07 - Lightweight Virtualization - LXC and Docker.md
    │   ├── Lecture 08 - Introduction to Cloud Computing.md
    │   ├── Lecture 08b - Edge Computing and Cloud Continuum.md
    │   ├── Lecture 09 - OpenStack.md
    │   ├── Lecture 10 - Microservices and Containers Orchestration.md
    │   ├── Lecture 11 - Kubernetes.md
    │   ├── Lecture 12 - Cloud Native Applications and the 12-Factor App.md
    │   ├── Lecture 13 - Service Mesh and Istio.md
    │   ├── Lecture 14 - DevOps and GitOps.md
    │   ├── Lecture 15 - Energy Considerations in Data Center Design.md
    │   ├── Lecture 16 - Managing Bare-Metal Servers.md
    │   └── Lecture 17 - AI in Kubernetes.md
    └── Resources/
        ├── 02 - Intro Computing Virtualization.pdf
        ├── 03 - Computing virtualization technologies and tools.pdf
        └── 04 - Computing virtualization technologies.pdf
20 Concepts/
└── Cloud Computing Technologies/

✅ End-of-week reset

  • Clear completed current-focus items
  • Review questions and add answers to concept notes
  • Link new lectures and exercises
  • Pick the next topics to review