Phase 0: The Primitives (Beginner Foundations)
Before you can architect an enterprise cloud, you must understand the core building blocks of computing. You cannot orchestrate containers if you do not know how to build one.
๐ง Beginner Mental Model (Explain Like Iโm 5)
Think of the Cloud as a giant automated skyscraper. Before you can design the skyscraper, you must understand how bricks, pipes, and locks work:
- Linux (
systemd, permissions, cgroups): The concrete foundation, rooms, and security doors of a single server. - Networking (CIDR, TCP/IP, DNS): The roads, street addresses, and phonebook that let servers talk to each other.
- Git: The architectural blueprint vault with a time machine so every change is tracked and reversible.
- Docker Containers: Standardized shipping crates that package your app and its dependencies together so it runs identically on a laptop or in AWS.
๐งญ Step-by-Step Learning Playbook for Phase 0
- Step 1: Study Lesson 1: Linux Primitives & systemd and practice process/permission commands.
- Step 2: Master subnetting and packet flow in Lesson 2: Networking & CIDR Math.
- Step 3: Learn branching and rebase hygiene in Lesson 3: Git & GitOps Foundations.
- Step 4: Build multi-stage distroless containers in Lesson 4: Docker & Container Primitives.
- Step 5: Dive into kernel namespaces & cgroups v2 in Lesson 5: Kernel Namespaces & cgroups, then complete the Phase 0 Hands-On Labs.
๐ Deep-Dive Index
1. Linux & The Command Line
- Navigation & Permissions:
cd,ls,chmod,chown, file descriptors. - Process Management:
top,ps,kill,systemd(services). - Text Manipulation:
grep,awk,sed,vimornano. - Bash Scripting: Variables, loops, writing simple automation scripts.
2. Networking 101
- The OSI Model: Understanding Layer 3 (IP), Layer 4 (TCP/UDP), and Layer 7 (HTTP/DNS).
- IP Addressing: IPv4, CIDR notation (e.g., what does
/24vs/16mean?), private vs public IPs. - Troubleshooting:
ping,curl,telnet,nslookup,traceroute.
3. Version Control (Git)
- Core Git:
clone,add,commit,push,pull. - Collaboration: Branching, merging, resolving merge conflicts, Pull Requests (PRs).
4. Containerization (Docker)
- Concepts: Virtual Machines vs Containers, the Docker daemon.
- Building: Writing a
Dockerfile, understanding image layers, caching. - Running: Port mapping (
-p), Volume mounting (-v), Environment variables (-e).
๐ ๏ธ Job-Essential Exercises
- The Linux Web Server Script:
- Spin up a local virtual machine (or use an AWS EC2 free tier). Write a Bash script (
setup.sh) that automatically updates the OS, installs NGINX, creates a customindex.htmlsaying โHello Worldโ, and starts the web service.
- Spin up a local virtual machine (or use an AWS EC2 free tier). Write a Bash script (
- The Subnet Math Challenge:
- Take the IP block
10.0.0.0/16. Divide it into 4 equal subnets. Calculate the Network ID, Broadcast IP, and usable IP range for each. (You will need this for AWS VPCs later).
- Take the IP block
- The Dockerized Application:
- Write a simple Python/Flask or Node.js web API.
- Write a
Dockerfileto containerize it. - Build the image and run it locally, mapping port 8080 on your laptop to port 80 inside the container. Verify you can reach it via
curl http://localhost:8080.