How to Learn DevOps: The Complete 2027 Roadmap (Zero to Job-Ready)
A free, staged path for learning DevOps from scratch: Linux, networking, Git, scripting, Docker, CI/CD, cloud, Terraform, Kubernetes, observability, security and SRE, with time estimates, the best free resources, portfolio projects and honest advice on certifications.
Last reviewed: December 2026
If you are searching for how to learn DevOps, you have probably already seen a wall of logos and a dozen “DevOps roadmap” images that list 80 tools. This guide takes the opposite approach. It tells you what to learn in what order, roughly how long each stage takes, which single resource to start with, and what to build so you can prove the skill. It is written for self-taught learners, developers moving toward operations, sysadmins moving toward automation, and students who want a DevOps, SRE, cloud or platform engineering job.
Everything linked here was checked in December 2026. Paid resources are marked (paid). Prices and exam details change often, so always confirm on the official page before you pay for anything.
Table of Contents
- What DevOps Actually Is
- DevOps, SRE, Platform and Cloud Engineering: Which Job Do You Want?
- The Roadmap at a Glance
- Stage 0: Set Up Your Learning Environment
- Stage 1: Linux and the Shell
- Stage 2: Networking Fundamentals
- Stage 3: Git and a Scripting Language
- Stage 4: Containers with Docker
- Stage 5: CI/CD Pipelines
- Stage 6: One Cloud Provider
- Stage 7: Infrastructure as Code and Configuration Management
- Stage 8: Kubernetes
- Stage 9: Observability
- Stage 10: DevSecOps and Supply Chain Security
- Stage 11: SRE Practices and Incident Response
- Stage 12: GitOps and Platform Engineering
- Tool Choice Cheat Sheet
- Best Free Courses
- Books Worth Reading
- YouTube Channels and Hands-On Labs
- Certifications: Which Ones Are Worth It
- Portfolio Projects (Beginner to Advanced)
- Weekly Study Plans
- DevOps Interview Preparation
- Common Mistakes
- FAQ
- Where to Go Next
- Contributing
What DevOps Actually Is
DevOps is a way of building and running software where the people who write the code and the people who run it share responsibility for getting changes to users quickly and safely. It is a set of practices and a culture first, and a toolbox second. The tools (Docker, Terraform, Kubernetes, GitHub Actions) exist to make those practices cheap enough to do every day.
A useful mental model is the CALMS checklist:
| Letter | Stands for | What it means in practice |
|---|---|---|
| C | Culture | Shared ownership, blameless postmortems, no “throw it over the wall” handoffs |
| A | Automation | Builds, tests, deploys and infrastructure are code, run by machines |
| L | Lean | Small batches, short feedback loops, limit work in progress |
| M | Measurement | You measure delivery performance and system health, not just activity |
| S | Sharing | Knowledge, tooling and on-call duty are shared across teams |
How DevOps success is measured: the DORA metrics
The DORA research program (now run by Google Cloud) has studied software delivery for over a decade. Its current guide to software delivery metrics groups them into two families:
| Family | Metric | Plain-English question |
|---|---|---|
| Throughput | Change lead time | How long from a commit to that commit running in production? |
| Throughput | Deployment frequency | How often do we ship to production? |
| Throughput | Failed deployment recovery time | When a deployment breaks things, how quickly do we recover? |
| Instability | Change fail rate | What share of deployments cause a failure that needs fixing? |
| Instability | Deployment rework rate | What share of deployments are unplanned fixes for earlier problems? |
The most important finding from years of DORA research is that speed and stability are not a trade-off: teams that deploy more often also tend to break things less. The 2025 DORA report, titled State of AI-assisted Software Development, adds that AI tools act as an amplifier: teams with good platforms, small batches and fast feedback get more out of AI, while teams with slow, tightly coupled systems see little benefit. That is a strong argument for learning the fundamentals in this guide rather than chasing tools.
DevOps, SRE, Platform and Cloud Engineering: Which Job Do You Want?
Job titles overlap heavily. The skills in this roadmap cover all of them; the emphasis differs.
| Role | Main focus | Typical daily work | Extra emphasis in this roadmap |
|---|---|---|---|
| DevOps Engineer | Delivery pipeline and infrastructure automation | CI/CD, IaC, containers, cloud resources | Stages 4-8 |
| Site Reliability Engineer (SRE) | Reliability of production systems, measured with SLOs | On-call, incident response, capacity, automation to reduce toil | Stages 1-2, 9, 11, plus stronger coding |
| Platform Engineer | Internal developer platform that other teams self-serve from | Golden paths, templates, Kubernetes platforms, developer portals | Stages 8, 12 |
| Cloud Engineer | Designing and operating cloud infrastructure | Networking, IAM, cost, managed services | Stages 2, 6, 7 |
| DevSecOps / Cloud Security Engineer | Security built into pipelines and infrastructure | Scanning, policy as code, secrets, supply chain | Stage 10 |
Best pick if you are unsure: aim for “DevOps Engineer” or “Cloud Engineer”. These titles have the most job listings that accept people without previous ops experience, and the skills transfer to SRE and platform roles later.
The Roadmap at a Glance
Time estimates assume about 10 focused hours per week. Double the pace if you study full-time; add 30-50% if you are new to programming.
| Stage | Topic | Time (10 h/week) | You are done when you can… |
|---|---|---|---|
| 0 | Environment setup | 1 week | Run a Linux VM or WSL, use a terminal editor, SSH into a machine |
| 1 | Linux and shell | 4-6 weeks | Manage users, permissions, processes, services and logs; write a 50-line Bash script |
| 2 | Networking | 2-3 weeks | Explain what happens when you type a URL; debug DNS, ports and TLS from the CLI |
| 3 | Git + Python or Go | 4-6 weeks | Branch, rebase, resolve conflicts; write a script that calls an API and handles errors |
| 4 | Docker | 3 weeks | Write a small, secure multi-stage Dockerfile and a Compose stack with a database |
| 5 | CI/CD | 3 weeks | Build a pipeline that tests, scans, builds an image and deploys on merge |
| 6 | One cloud | 4-6 weeks | Build a VPC, compute, storage, IAM roles and a managed database by hand, then tear them down |
| 7 | IaC | 4 weeks | Recreate stage 6 with Terraform/OpenTofu modules, remote state and a plan in CI |
| 8 | Kubernetes | 6-8 weeks | Deploy, expose, scale, configure and debug an app; use Helm or Kustomize |
| 9 | Observability | 3 weeks | Add metrics, logs and traces; build a dashboard and an alert tied to an SLO |
| 10 | DevSecOps | 2-3 weeks | Scan code, images and IaC in CI; manage secrets without committing them |
| 11 | SRE and incidents | 2 weeks | Write SLOs, an error budget policy, a runbook and a blameless postmortem |
| 12 | GitOps and platforms | Ongoing | Deploy to Kubernetes with Argo CD or Flux from a Git repo |
Total: roughly 9-12 months part-time to a junior-ready portfolio. People with a developer or sysadmin background often finish in 4-6 months because stages 1-3 go quickly.
Linux ─► Networking ─► Git + Scripting ─► Docker ─► CI/CD
│
┌─────────────────────────────────────────────┘
▼
One Cloud ─► Terraform/OpenTofu ─► Kubernetes ─► Observability
│
┌─────────────────────────────────────────────┘
▼
DevSecOps ─► SRE practices ─► GitOps / Platform engineering
The order matters. Kubernetes is the most tempting thing to start with, and the most common reason beginners give up: it assumes you already understand Linux processes, networking, containers and YAML. Learn those first and Kubernetes becomes much easier.
Stage 0: Set Up Your Learning Environment
Time: about 1 week
You need a Linux environment you are not afraid to break.
| Your computer | Best option | Notes |
|---|---|---|
| Windows | WSL 2 with Ubuntu | Built into Windows; good enough for almost everything in this guide |
| macOS | A Linux VM (UTM, Multipass, Lima) plus Homebrew for CLI tools | macOS is Unix-like but not Linux; use a real Linux VM for stage 1 |
| Linux | You are already set | Use a VM for experiments that could break your system |
| Old laptop / Raspberry Pi | Install a server distro | Great for a home lab later |
Also set up:
- A GitHub account (your portfolio lives here).
- A cloud free tier account (you will need it in stage 6). See AWS Free Tier, Azure free services, Google Cloud Free Program or Oracle Cloud Free Tier. Set a billing alert on day one. Free tiers change and surprise bills are the classic beginner mistake.
- A code editor (VS Code is the common default) and basic comfort with one terminal editor (
nanois fine,vimis worth learning eventually).
Stage 1: Linux and the Shell
Time: 4-6 weeks. Why first: almost every server, container and CI runner you will touch runs Linux.
What to learn
- Navigation and files:
ls,cd,cp,mv,rm,find, globbing, absolute vs relative paths. - Permissions: users, groups,
chmod,chown,sudo, whatrwxmeans for directories. - Text processing: pipes, redirection,
grep,sed,awk,cut,sort,uniq,xargs,jq. - Processes:
ps,top/htop, signals,kill, foreground/background, exit codes. - Services and logs:
systemd,systemctl,journalctl,/var/log. - Packages:
apt/dnf, repositories, why pinning versions matters. - Disks and filesystems:
df,du, mounts, inodes. - SSH: key pairs,
~/.ssh/config,scp/rsync, disabling password logins. - Bash scripting: variables, quoting, conditionals, loops, functions,
set -euo pipefail, cron. - Performance basics: CPU, memory, disk and network saturation (Brendan Gregg’s USE method).
Best resources
| Resource | Type | Cost | Why |
|---|---|---|---|
| The Linux Command Line by William Shotts | Book | Free PDF from the author | Best pick. Clear, complete, and legally free |
| Introduction to Linux (LFS101) | Course | Free (paid certificate optional) | Structured course from the Linux Foundation |
| The Missing Semester of Your CS Education (MIT) | Lectures | Free | Shell, scripting, editors, Git, debugging in one short course |
| OverTheWire: Bandit | Game | Free | Learn the shell by solving levels over SSH |
| Linux Upskill Challenge | Month-long challenge | Free | Daily server admin tasks on a real VM |
| Greg’s Bash Guide | Guide | Free | The reference for writing Bash correctly |
| ShellCheck | Linter | Free | Catches quoting bugs in your scripts; use it on everything |
| explainshell and tldr pages | Tools | Free | Understand a command line; short practical examples |
| Learn Linux TV | YouTube | Free | Practical server-admin videos |
Exercises
- Create three users in a group, give the group a shared directory where everyone can write but not delete each other’s files (hint: the sticky bit).
- Write a script that finds the 10 largest files under a directory and prints them in human-readable sizes.
- Parse an Nginx access log: top 10 IPs, top 10 paths, count of 5xx responses per hour.
- Install Nginx, make it start on boot, break its config on purpose, and find the error with
journalctl. - Set up SSH key login to a VM and disable password authentication.
Stage 2: Networking Fundamentals
Time: 2-3 weeks. Most production incidents you debug will involve DNS, a firewall, a load balancer or TLS.
What to learn
- The OSI and TCP/IP models (enough to talk about “layer 4 vs layer 7”).
- IP addresses, subnets and CIDR (be able to compute how many hosts are in a
/24or a/20). - Public vs private ranges, NAT, routing, default gateways.
- TCP vs UDP, ports, the TCP handshake, connection states.
- DNS: records (A, AAAA, CNAME, MX, TXT, NS), TTLs, resolvers,
dig. - HTTP/1.1, HTTP/2, HTTP/3 basics, status codes, headers, cookies.
- TLS: certificates, chains, SNI, Let’s Encrypt.
- Load balancers (L4 vs L7), reverse proxies, CDNs.
- Firewalls and security groups.
- CLI tools:
ip,ss,ping,traceroute/mtr,dig,curl -v,openssl s_client,tcpdump.
Best resources
| Resource | Cost | Why |
|---|---|---|
| High Performance Browser Networking by Ilya Grigorik | Free online | Best pick for TCP, TLS and HTTP explained for engineers |
| Cloudflare Learning Center | Free | Short, clear explainers on DNS, CDNs, DDoS, TLS |
| Beej’s Guide to Network Programming | Free | Sockets from the programmer’s side |
| Julia Evans’ blog and Wizard Zines | Blog free, zines mostly paid | Friendly explanations of DNS, networking and debugging tools |
Exercises
- Use
dig +traceto follow a DNS lookup from the root servers down. - Split
10.0.0.0/16into four equal subnets and two smaller ones; write down the ranges. - Run
curl -v https://example.comand explain every line of the output. - Put Nginx in front of two copies of a small app as a reverse proxy and load balancer.
Stage 3: Git and a Scripting Language
Time: 4-6 weeks. DevOps engineers write a lot of code: glue scripts, CLI tools, pipeline logic, operators and automation.
Git
Learn: commits, branches, merging vs rebasing, resolving conflicts, git log/git bisect, tags, pull requests and code review, trunk-based development vs long-lived branches, .gitignore, and never committing secrets.
- Pro Git (free book, official) is the reference.
- Learn Git Branching (free, interactive) is the fastest way to understand branches visually.
Which language?
| Language | Strengths for DevOps | Best pick when… |
|---|---|---|
| Python | Huge ecosystem, cloud SDKs, Ansible is written in it, readable | Default choice for most learners |
| Go | Kubernetes, Docker, Terraform, Prometheus are written in it; single static binaries | You want SRE/platform roles or to write Kubernetes operators |
| Bash | Always available, perfect glue | Short scripts only; switch to Python/Go past ~100 lines |
Resources: the official Python tutorial, Automate the Boring Stuff with Python (free to read online), and A Tour of Go.
Exercises
- Write a Python script that checks a list of URLs, follows redirects, and reports status code, latency and TLS expiry date. Add a non-zero exit code if any check fails, so it can run in CI.
- Write a script that cleans up old files or old container images based on age, with a
--dry-runflag. - Use a cloud SDK (for example boto3 for AWS) to list resources that have no
ownertag.
Stage 4: Containers with Docker
Time: 3 weeks.
What to learn
- Images vs containers, layers and caching, registries, tags vs digests.
- Writing Dockerfiles:
FROM,RUN,COPY,CMDvsENTRYPOINT,.dockerignore. - Multi-stage builds to keep images small; distroless or slim base images.
- Running as a non-root user; why you should not bake secrets into images.
- Volumes, bind mounts, container networking, port mapping.
- Docker Compose for multi-container local environments.
- What containers really are on Linux: namespaces and cgroups (this pays off in Kubernetes).
- Alternatives you should recognize: Podman (daemonless, rootless), containerd, BuildKit.
Best resources
| Resource | Cost | Why |
|---|---|---|
| DevOps with Docker (University of Helsinki) | Free | Best pick. Real exercises, graded, very practical |
| Docker’s official Get Started guide | Free | Accurate and current |
| Dockerfile best practices | Free | Read this before you write your second Dockerfile |
| Docker Compose docs | Free | Reference for local stacks |
| Docker Curriculum | Free | Friendly beginner walkthrough |
| Hadolint | Free | Lints Dockerfiles; add it to CI |
| Docker Deep Dive by Nigel Poulton (author’s books page) | Paid | Clear, regularly updated book |
Exercises
- Containerize a small web app with a database using Compose. Make the app wait for the database properly (healthchecks), not with
sleep 10. - Take a naive 1 GB image and get it under 100 MB with a multi-stage build. Measure before and after.
- Make the container run as a non-root user and with a read-only root filesystem.
Stage 5: CI/CD Pipelines
Time: 3 weeks.
Continuous Integration means every change is merged often and verified automatically (build, lint, test). Continuous Delivery means every change that passes is releasable; Continuous Deployment means it is released automatically.
What to learn
- Pipeline stages: lint, unit test, build, scan, package, deploy, smoke test.
- Triggers: push, pull request, tags, schedules, manual approvals.
- Caching dependencies and Docker layers so pipelines stay fast.
- Artifacts and container registries; tagging images with the Git commit SHA.
- Environments (dev/staging/prod), promotion, and approvals.
- Secrets in CI and short-lived cloud credentials (OIDC federation instead of long-lived keys).
- Deployment strategies: rolling, blue/green, canary, feature flags.
- Pipeline security: pin third-party actions, least-privilege tokens. Read GitHub’s security hardening guide for Actions.
CI/CD tool comparison
| Tool | Hosting | Best for | Notes |
|---|---|---|---|
| GitHub Actions | Hosted + self-hosted runners | Best pick for learners; most open source uses it | Free minutes for public repos; huge marketplace |
| GitLab CI/CD | Hosted or self-managed | Teams on GitLab; integrated registry and security scanning | Single .gitlab-ci.yml |
| Jenkins | Self-hosted | Large enterprises with existing Jenkins estates | Very flexible, more maintenance; still common in job listings |
| Azure Pipelines / AWS CodePipeline / Google Cloud Build | Cloud-native | Teams standardized on one cloud | Learn when a job needs it |
| Argo CD / Flux | In your Kubernetes cluster | The “CD” half for Kubernetes via GitOps | Covered in stage 12 |
Exercises
- For the app from stage 4: on every pull request, run lint and tests; on merge to
main, build the image, scan it, push it to a registry tagged with the commit SHA. - Add a matrix build that tests two language versions.
- Add caching and record how much faster the pipeline gets.
- Deploy automatically to a cheap target (a single VM or a free platform) after the image is pushed, then add a manual approval for “production”.
Stage 6: One Cloud Provider
Time: 4-6 weeks. Pick one provider and go deep. The concepts transfer.
| Provider | Job market | Free learning | Best for |
|---|---|---|---|
| AWS | Largest share of job listings in most regions | AWS Skill Builder (many free courses) | Best default pick |
| Microsoft Azure | Strong in enterprises and Microsoft-heavy companies | Microsoft Learn | You work around .NET, Windows or Microsoft 365 |
| Google Cloud | Strong in data/ML and Kubernetes-heavy companies | Google Cloud Skills Boost | You like GKE or data platforms |
Core concepts (same on every cloud)
- Identity and access: users vs roles, least privilege, policies, no root-account usage, MFA.
- Networking: VPC/VNet, subnets (public/private), route tables, internet and NAT gateways, security groups, load balancers, private endpoints, DNS.
- Compute: VMs, autoscaling groups, managed containers (ECS/Cloud Run/Container Apps), managed Kubernetes (EKS/AKS/GKE), serverless functions.
- Storage: object storage (S3/Blob/GCS), block storage, file storage, lifecycle rules.
- Databases: managed relational DBs, backups, replicas, failover.
- Cost: budgets, tagging, rightsizing, why idle NAT gateways and load balancers cost money.
- Well-architected thinking: reliability, security, cost, performance, operations.
Exercises
- By hand in the console, build: a VPC with public and private subnets, a load balancer in public subnets, two app instances in private subnets, a managed database, and an object storage bucket that is not public. Then delete everything and check the bill.
- Do the Cloud Resume Challenge: a small but complete project covering static hosting, DNS, a serverless API, a database, IaC and CI/CD.
Stage 7: Infrastructure as Code and Configuration Management
Time: 4 weeks.
Infrastructure as Code (IaC) means your servers, networks and cloud resources are described in version-controlled files and created by tools, not by clicking.
What to learn
- Declarative vs imperative tools; idempotency; drift.
- Terraform/OpenTofu basics: providers, resources, variables, outputs, data sources,
planvsapply. - State: what it is, remote state backends, locking, why you never edit it by hand.
- Modules, environments, and avoiding copy-paste across dev/staging/prod.
- Running
planin CI on pull requests andapplyafter review. - Configuration management with Ansible: inventories, playbooks, roles, idempotent tasks.
- Image building with Packer for “bake, don’t configure” workflows.
IaC tool comparison
| Tool | Language | License | Best for |
|---|---|---|---|
| Terraform | HCL | Business Source License (since 2023); HashiCorp is now part of IBM | Most job listings; huge provider ecosystem |
| OpenTofu | HCL | Open source (MPL 2.0), Linux Foundation project | Drop-in community fork of Terraform; learn one and you know both |
| Pulumi | TypeScript, Python, Go, C#, Java | Open source engine | Teams that prefer general-purpose languages |
| AWS CloudFormation / CDK | YAML/JSON or code | AWS only | AWS-only shops |
| Azure Bicep | Bicep DSL | Azure only | Azure-only shops |
| Ansible | YAML playbooks | Open source | Configuring servers and network devices; not a replacement for Terraform |
Best pick: learn Terraform syntax (the most common in job listings) and know that OpenTofu runs the same code for most use cases. Add Ansible if your target jobs mention VMs or on-premises servers.
Resources
- HashiCorp Terraform tutorials and the Terraform language docs (free).
- OpenTofu docs (free).
- Terraform Best Practices by Anton Babenko (free online).
- Terraform: Up & Running by Yevgeniy Brikman (book site) (paid). The best book on structuring real Terraform code.
Exercises
- Rebuild your stage 6 architecture in Terraform/OpenTofu with a reusable
networkmodule and anappmodule. - Store state remotely with locking. Run
planon pull requests and post the output as a PR comment. - Delete a resource in the console and see how
planreports the drift. - Write an Ansible playbook that installs and configures Nginx, then run it twice to prove it is idempotent.
Stage 8: Kubernetes
Time: 6-8 weeks. Kubernetes is the de facto platform for running containers at scale, and the skill most often listed in DevOps and platform job descriptions.
What to learn, in order
- Architecture: control plane (API server, etcd, scheduler, controller manager), nodes, kubelet, container runtime. Read the overview.
- Core objects: Pod, Deployment, ReplicaSet, Service, Namespace, ConfigMap, Secret.
- kubectl fluency:
get,describe,logs,exec,port-forward,apply,-o yaml,--dry-run=client. Keep the kubectl quick reference open. - Networking: Services (ClusterIP, NodePort, LoadBalancer), DNS inside the cluster, Ingress and the newer Gateway API, NetworkPolicies.
- Storage: PersistentVolumes, PersistentVolumeClaims, StorageClasses, StatefulSets.
- Configuration and health: resource requests and limits, liveness/readiness/startup probes, autoscaling.
- Security: RBAC, ServiceAccounts, Pod Security Standards, NetworkPolicies. See Kubernetes security concepts.
- Packaging: Helm charts and Kustomize overlays.
- Operations: upgrades, draining nodes, backups of etcd, debugging
CrashLoopBackOff,ImagePullBackOff,Pendingpods. - Extending: CRDs and operators (read about them; build one later).
Local clusters
| Tool | Best for |
|---|---|
| kind | Best pick for learning and CI; clusters in Docker containers, multi-node supported |
| minikube | Beginner-friendly, many add-ons |
| k3s / k3d | Lightweight Kubernetes; great for home labs and Raspberry Pi |
| Managed (EKS/AKS/GKE) | Learn after local; watch costs, delete clusters when idle |
Best resources
| Resource | Cost | Why |
|---|---|---|
| Kubernetes official tutorials | Free | Authoritative; the docs are also allowed during CKA/CKAD exams |
| DevOps with Kubernetes (University of Helsinki) | Free | Best pick for a structured, exercise-driven course |
| Introduction to Kubernetes (LFS158) | Free | Solid conceptual intro from the Linux Foundation |
| Kubernetes the Hard Way | Free | Build a cluster by hand to understand every component; do it after the basics |
| Killercoda | Free tier | Browser-based Kubernetes and Linux scenarios |
| TechWorld with Nana | Free videos | Clear visual explanations of Kubernetes, Docker, CI/CD |
| Kubernetes in Action, 2nd ed. by Marko Lukša (Manning) | Paid | The deepest single book on how Kubernetes works |
| The Kubernetes Book by Nigel Poulton (author’s books page) | Paid | Shorter, updated regularly |
Exercises
- Deploy your app and database to kind with Deployments, a StatefulSet, Services and an Ingress or Gateway.
- Add requests/limits, probes and a HorizontalPodAutoscaler; generate load and watch it scale.
- Break things on purpose: wrong image tag, failing readiness probe, missing ConfigMap, a NetworkPolicy that blocks traffic. Practice finding each with
describe,logsand events. - Package the app as a Helm chart with values for dev and prod.
Stage 9: Observability
Time: 3 weeks.
Monitoring tells you when something is wrong; observability helps you ask why, including for failures you did not predict.
What to learn
- The three main signals: metrics, logs, traces (plus profiles, increasingly).
- Prometheus data model, PromQL basics, exporters, recording and alerting rules.
- Dashboards in Grafana; avoiding vanity dashboards.
- Structured logging (JSON logs), log aggregation (Loki or the Elastic stack).
- Distributed tracing with OpenTelemetry, the vendor-neutral standard for instrumenting code.
- Methods for choosing what to measure: USE (utilization, saturation, errors) for resources, RED (rate, errors, duration) for services (Grafana’s RED method article), and Google’s four golden signals (latency, traffic, errors, saturation) from the SRE book chapter Monitoring Distributed Systems.
- Alerting on symptoms users feel, not on every CPU spike.
Tools
| Tool | What it does | Cost |
|---|---|---|
| Prometheus | Metrics collection and alerting | Open source |
| Grafana | Dashboards | Open source (cloud tier available) |
| Loki | Log aggregation | Open source |
| Jaeger | Tracing backend | Open source |
| OpenTelemetry | Instrumentation SDKs and the Collector | Open source |
| Datadog, New Relic, Honeycomb, Grafana Cloud | Hosted observability | Paid (free tiers exist) |
Exercises
- Run Prometheus and Grafana (for example via the kube-prometheus-stack Helm chart) against your cluster.
- Instrument your app with OpenTelemetry: request counter, latency histogram, and traces across two services.
- Define an availability SLO and create an alert that fires on fast error-budget burn.
Stage 10: DevSecOps and Supply Chain Security
Time: 2-3 weeks. Security is part of the job, not a separate team’s afterthought.
What to learn
- Secrets management: never in Git; use a secret manager (cloud secret stores, HashiCorp Vault, External Secrets Operator for Kubernetes).
- Scanning in CI: dependencies (SCA), code (SAST), container images, IaC misconfigurations, leaked secrets.
- Least privilege for humans, CI and workloads; short-lived credentials via OIDC.
- Software supply chain: SBOMs, signed images with Sigstore, the SLSA framework.
- Policy as code: Open Policy Agent, Kyverno.
- Hardening baselines: CIS Benchmarks.
- Web app risks every engineer should recognize: the OWASP Top 10.
Free tools to add to your pipeline
| Tool | Scans for |
|---|---|
| Trivy | Image, filesystem, IaC and Kubernetes vulnerabilities and misconfigurations |
| Gitleaks | Secrets committed to Git |
| Hadolint | Dockerfile issues |
| Dependabot / Renovate | Outdated and vulnerable dependencies |
| ShellCheck | Shell script bugs |
Exercises
- Add Trivy, Gitleaks and Hadolint to your pipeline and fail the build on high-severity findings.
- Replace long-lived cloud keys in CI with OIDC federation.
- Write a Kyverno or OPA policy that blocks containers running as root.
Stage 11: SRE Practices and Incident Response
Time: 2 weeks. Google’s SRE books are free and are still the best introduction.
What to learn
- SLIs, SLOs and error budgets: define reliability from the user’s point of view and decide what to do when you are out of budget.
- Toil: manual, repetitive, automatable work; measure it and engineer it away.
- Incident response: roles (incident commander, communications, operations), severity levels, status updates. PagerDuty’s open Incident Response documentation is a free, practical template.
- Blameless postmortems: see the workbook chapter on postmortem culture.
- Capacity planning, load testing and graceful degradation.
- On-call health: sensible alert volume, runbooks, handoffs.
Free SRE books (official, legally free)
All available at sre.google/books:
- Site Reliability Engineering
- The Site Reliability Workbook
- Building Secure and Reliable Systems
Also useful: How They SRE (a curated list of public SRE write-ups from real companies) and awesome-sre.
Exercises
- Write SLOs for your app (availability and latency), an error budget policy, and a one-page runbook for “high error rate”.
- Run a game day: kill a pod, a node, or the database; time how long detection and recovery take; write a postmortem.
Stage 12: GitOps and Platform Engineering
Time: ongoing.
GitOps means the desired state of your systems lives in Git, and an agent in the cluster continuously reconciles reality to match it (OpenGitOps principles). Platform engineering means building an internal product (templates, pipelines, clusters, portals) so application teams can ship without becoming infrastructure experts.
What to learn
- Argo CD or Flux for GitOps deployment.
- Progressive delivery with Argo Rollouts (canary and blue/green on Kubernetes).
- Developer portals: Backstage.
- Infrastructure APIs on Kubernetes: Crossplane.
- Thinking about teams and cognitive load: Team Topologies (see books below).
- Browsing the CNCF Landscape without trying to learn all of it.
Exercises
- Move your app’s Kubernetes manifests to a separate “config” repo and deploy them with Argo CD. Make a change by pull request only.
- Add a canary rollout that automatically aborts when error rate rises.
- Create a “golden path” template repository: a service skeleton with Dockerfile, pipeline, Helm chart, dashboards and alerts that a new team could copy.
Tool Choice Cheat Sheet
When there are several options, here is the pragmatic first pick for a learner:
| Category | First pick | Also common | Why the first pick |
|---|---|---|---|
| OS | Ubuntu LTS | RHEL/Rocky/Alma, Debian, Amazon Linux | Most tutorials and images assume it |
| Scripting | Python | Go, Bash, PowerShell | Readable, everywhere, cloud SDKs |
| Containers | Docker | Podman, containerd | Most docs and courses |
| CI/CD | GitHub Actions | GitLab CI, Jenkins | Free for public repos, easy to show off |
| Cloud | AWS | Azure, GCP | Most job listings |
| IaC | Terraform (HCL) | OpenTofu, Pulumi, CloudFormation, Bicep | Most job listings; OpenTofu-compatible |
| Config management | Ansible | Chef, Puppet, Salt | Agentless, YAML, easy to start |
| Local Kubernetes | kind | minikube, k3d | Fast, CI-friendly, multi-node |
| K8s packaging | Helm | Kustomize | Most third-party software ships Helm charts |
| GitOps | Argo CD | Flux | Popular UI makes learning easier |
| Metrics | Prometheus + Grafana | Datadog, CloudWatch | Open source standard |
| Tracing | OpenTelemetry | Vendor agents | Vendor-neutral standard |
| Image scanning | Trivy | Grype, Snyk | Free, scans many things |
Best Free Courses
| Course | Provider | Covers | Notes |
|---|---|---|---|
| DevOps with Docker | University of Helsinki | Docker, Compose, images | Free, exercise-based |
| DevOps with Kubernetes | University of Helsinki | Kubernetes, GitOps, monitoring | Free, exercise-based |
| Introduction to Linux (LFS101) | Linux Foundation | Linux | Free; paid certificate optional |
| Introduction to Kubernetes (LFS158) | Linux Foundation | Kubernetes concepts | Free |
| Introduction to DevOps and SRE (LFS162) | Linux Foundation | DevOps and SRE overview | Free |
| The Missing Semester | MIT | Shell, Git, tooling | Free lectures and notes |
| 90DaysOfDevOps | Michael Cade and community | Broad daily curriculum | Free on GitHub |
| DevOps Directive courses | Sid Palas | Docker, Kubernetes, GitHub Actions, Terraform | Free, with YouTube videos |
| AWS Skill Builder | AWS | AWS fundamentals | Many free courses; paid subscription for labs |
| Google Cloud Skills Boost | Google Cloud | GCP | Some free; credits-based labs |
| freeCodeCamp YouTube | freeCodeCamp | Long full-length courses on Docker, K8s, Terraform, AWS | Free |
Paid options worth knowing about: KodeKloud (paid, with browser labs, popular for CKA/CKAD prep) and the official Linux Foundation exam-prep courses (paid). Paid is not required to get hired.
Books Worth Reading
| Book | Author(s) | Cost | Read it for |
|---|---|---|---|
| The Linux Command Line | William Shotts | Free PDF | Linux and Bash foundations |
| Pro Git | Scott Chacon, Ben Straub | Free | Git, properly |
| Site Reliability Engineering | Google (eds. Beyer, Jones, Petoff, Murphy) | Free online | SRE principles |
| The Site Reliability Workbook | Free online | Putting SLOs and on-call into practice | |
| High Performance Browser Networking | Ilya Grigorik | Free online | Networking for engineers |
| The Phoenix Project | Gene Kim, Kevin Behr, George Spafford | Paid | A novel that explains why DevOps exists; easy first read |
| The DevOps Handbook, 2nd ed. | Gene Kim, Jez Humble, Patrick Debois, John Willis, Nicole Forsgren | Paid | The practical “how” behind the movement |
| Accelerate | Nicole Forsgren, Jez Humble, Gene Kim | Paid | The research behind the DORA metrics |
| Team Topologies, 2nd ed. | Matthew Skelton, Manuel Pais | Paid | Organizing teams and platforms |
| Terraform: Up & Running | Yevgeniy Brikman | Paid | Real-world Terraform structure |
| Kubernetes in Action, 2nd ed. | Marko Lukša and co-authors | Paid | Deep Kubernetes internals |
| Platform Engineering (O’Reilly) | Camille Fournier, Ian Nowland | Paid | Building internal platforms that people actually use |
| Observability Engineering (O’Reilly) | Charity Majors, Liz Fong-Jones, George Miranda | Paid | Modern observability thinking |
Reading order for a beginner: The Linux Command Line (while doing stage 1) → The Phoenix Project (for motivation) → SRE book chapters as you reach stage 11 → Accelerate and Team Topologies once you have a job or a team.
YouTube Channels and Hands-On Labs
| Channel / Lab | Good for |
|---|---|
| TechWorld with Nana | Visual explanations of DevOps concepts and tools |
| DevOps Toolkit (Viktor Farcic) | Opinionated reviews of cloud-native tools, platform engineering |
| DevOps Directive | Full-length, project-based courses |
| Anton Putra | Hands-on Kubernetes, AWS and performance comparisons |
| CNCF | KubeCon talks; search for the “101” and case-study talks |
| Rawkode Academy | Deep dives into cloud-native projects |
| Learn Linux TV | Linux administration |
| Killercoda | Free browser-based Linux and Kubernetes scenarios |
| OverTheWire: Bandit | Shell skills through a game |
| DevOps exercises | Large free question bank for interview practice |
| roadmap.sh DevOps | A community-maintained visual roadmap to compare against |
Certifications: Which Ones Are Worth It
Certifications do not replace projects, but they help get past resume filters, especially for career changers. Prices below were listed on official pages in December 2026, in USD, before tax; they change, so confirm before buying.
| Certification | Format | Listed price | Worth it? |
|---|---|---|---|
| AWS Certified Solutions Architect - Associate | Multiple choice | Check official page | Yes, strong first cloud cert for AWS-focused roles |
| AWS Certified DevOps Engineer - Professional | Multiple choice | Check official page | Later, after real AWS experience |
| Microsoft DevOps Engineer Expert (AZ-400) | Multiple choice | Check official page | If targeting Azure shops; requires an associate cert too |
| Google Professional Cloud DevOps Engineer | Multiple choice | Check official page | If targeting GCP |
| HashiCorp Terraform Associate (004) | 1-hour multiple choice, Terraform 1.12 | $70.50 | Yes, cheap and widely recognized |
| KCNA: Kubernetes and Cloud Native Associate | 90-min multiple choice | $250 | Optional; skip if you can go straight to CKA/CKAD |
| CKA: Certified Kubernetes Administrator | 2-hour hands-on, command line | $445 (includes a retake) | Yes, the most respected Kubernetes cert |
| CKAD: Certified Kubernetes Application Developer | Hands-on | Check official page | Good for developers moving toward platform work |
| CKS: Certified Kubernetes Security Specialist | Hands-on, requires CKA | Check official page | Later, for security-focused roles |
Best pick for most people: one cloud associate certification (AWS Solutions Architect Associate if no preference) plus CKA, backed by the portfolio projects below. CKA/CKAD/CKS registrations include practice sessions on killer.sh, which closely matches the real exam’s difficulty. The Linux Foundation regularly runs discounts; never buy “exam dumps”, which violate exam terms and do not teach the hands-on skills these exams test.
Portfolio Projects (Beginner to Advanced)
Each project should live in a public GitHub repository with a README that explains the architecture (a diagram helps), how to run it, what you learned, and what you would do differently.
| # | Project | Skills shown | Level |
|---|---|---|---|
| 1 | Server bootstrap script: a Bash or Python script that hardens a fresh Ubuntu VM (users, SSH keys, firewall, unattended upgrades) | Linux, scripting | Beginner |
| 2 | Log analyzer CLI: parses web server logs and outputs top endpoints, error rates and latency percentiles | Python, text processing | Beginner |
| 3 | Containerized three-tier app: frontend, API and database in Compose with healthchecks and non-root images | Docker | Beginner |
| 4 | Full CI pipeline: lint, test, scan, build and push on every PR/merge, with caching and status badges from your own CI | GitHub Actions, security | Beginner-Intermediate |
| 5 | Cloud Resume Challenge (cloudresumechallenge.dev) | Cloud, DNS, serverless, IaC, CI/CD | Intermediate |
| 6 | Terraform/OpenTofu landing zone: VPC, subnets, IAM roles, a managed DB and an app tier as modules with remote state and PR plans | IaC, cloud networking | Intermediate |
| 7 | Kubernetes deployment: your app on kind or a managed cluster with Helm, Ingress/Gateway, HPA, probes and NetworkPolicies | Kubernetes | Intermediate |
| 8 | Observability stack: Prometheus, Grafana, Loki and OpenTelemetry tracing for project 7, with SLO-based alerts | Observability, SRE | Intermediate-Advanced |
| 9 | GitOps with canary releases: Argo CD plus Argo Rollouts, automatic rollback on bad metrics | GitOps, progressive delivery | Advanced |
| 10 | Mini internal platform: a template repo plus pipeline plus Backstage entry that lets a “new team” ship a service in under an hour | Platform engineering | Advanced |
| 11 | Chaos game day write-up: inject failures into project 7/8 and publish the postmortems | SRE, incident response | Advanced |
| 12 | Home lab: k3s on old hardware or Raspberry Pis with GitOps, backups and monitoring | Everything | Any |
Tip: a smaller number of finished, well-documented projects beats a long list of tutorial clones. Recruiters and engineers look for evidence that you debugged something real.
Weekly Study Plans
Plan A: 10 hours/week (working full-time)
| Day | Time | Activity |
|---|---|---|
| Mon, Wed | 1.5 h each | Course or book chapter for the current stage |
| Tue, Thu | 1.5 h each | Exercises from this guide |
| Sat | 3 h | Portfolio project work |
| Sun | 1 h | Review notes, write a short blog post or README section about what you learned |
Plan B: 25-30 hours/week (full-time learner)
- Mornings: course material and reading (2 h).
- Afternoons: labs and exercises (2-3 h).
- One full day per week on the current portfolio project.
- One hour per week of interview practice from stage 8 onward.
Rules that keep you moving
- Finish one stage’s exercises before starting the next resource.
- Keep a public “learning log” repo; it doubles as proof of consistency.
- Delete cloud resources at the end of every session. Use budgets and alerts.
DevOps Interview Preparation
Interviews for DevOps, SRE and platform roles usually mix these rounds:
| Round | What it tests | How to prepare |
|---|---|---|
| Linux and troubleshooting | “A server is slow / disk is full / service will not start. What do you check?” | Practice out loud with a methodical checklist (USE method, logs, recent changes) |
| Networking | “What happens when you type a URL?”, DNS, TLS, load balancers | Stage 2 exercises; draw the path end to end |
| Coding | Scripting or small algorithm tasks, often in Python or Go | Write small tools; practice parsing files and calling APIs |
| System design / infrastructure design | Design a highly available web service, CI/CD for many teams, a logging pipeline | System Design Primer; talk about trade-offs and failure modes |
| Kubernetes and cloud | Debug a broken deployment, explain Services and networking, IAM design | Your project 7 plus deliberate break/fix practice |
| Behavioral | Incidents you handled, conflicts, on-call experience | Prepare 5-6 stories using situation, task, action, result |
Questions to be ready for:
- Explain the difference between a container and a VM.
- Walk through your CI/CD pipeline. How would you make it faster? Safer?
- What is Terraform state and what happens if two people apply at once?
- A pod is in
CrashLoopBackOff. How do you investigate? - How do you roll back a bad deployment? How would you detect it automatically?
- What are SLOs and error budgets? How would you pick an SLO for a login service?
- How do you handle secrets in a pipeline and in Kubernetes?
- Describe an outage you caused or debugged and what changed afterwards.
Common Mistakes
- Starting with Kubernetes. Without Linux, networking and containers, it is a wall of YAML.
- Tool collecting. Knowing one tool per category deeply is more valuable than knowing ten superficially.
- Never writing code. Modern DevOps is software engineering applied to infrastructure.
- Tutorial loops. If you have watched three courses on the same topic, you need a project, not a fourth course.
- Leaving cloud resources running. Set budgets, tag everything, tear down after every session.
- Committing secrets. Add Gitleaks or a pre-commit hook early; rotate anything that leaks.
- Ignoring the “why”. Interviewers ask why you chose a tool and what the trade-offs were.
- Skipping documentation. A README with a diagram and decisions is half the value of a portfolio project.
FAQ
How long does it take to learn DevOps?
Roughly 9-12 months at about 10 hours per week to reach a junior, job-ready level from scratch. Developers or sysadmins with existing Linux and coding skills often need 4-6 months. Learning never really ends, because the tools keep changing.
Can I learn DevOps without a degree or programming experience?
Yes. Many DevOps engineers are self-taught or came from support, sysadmin or QA roles. You do need to learn to program along the way (stage 3); avoiding code limits your growth.
Is DevOps an entry-level job?
Often not by title. Many companies prefer some experience in development, IT support or system administration. Good stepping stones are junior cloud engineer, junior SRE, support engineer, NOC engineer, system administrator, QA automation, or a backend developer role on a team that owns its own deployments. A strong portfolio and certifications help you skip some of those steps.
Which programming language should I learn for DevOps?
Python for most people. Go if you are aiming at SRE or platform engineering or want to contribute to Kubernetes-ecosystem tools. Learn enough Bash for glue work either way.
AWS, Azure or Google Cloud?
Check job listings in your area. If there is no clear signal, AWS has the most listings in most markets. Azure is common in enterprises using Microsoft products. The concepts (IAM, networking, compute, storage) transfer between all three.
Terraform or OpenTofu?
Learn the HCL language and workflow; both tools share it. Terraform appears in more job listings. OpenTofu is the open-source fork under the Linux Foundation and is a drop-in replacement for most configurations. Check which one your target employers use.
Do I need Kubernetes for every DevOps job?
No, but it appears in a large share of job descriptions, especially for platform and SRE roles. Many companies happily run on managed container services, serverless or VMs. Learn Kubernetes after you are comfortable with containers and one cloud.
Are DevOps certifications worth it?
They help most when you have no professional experience to show, and for passing HR filters. CKA and a cloud associate certification are the most commonly requested. They are not a substitute for projects you can explain in depth.
What is the difference between DevOps and SRE?
DevOps is a broad culture and set of practices for delivering software. SRE is a specific way of implementing those ideas, started at Google, that treats operations as a software problem and manages reliability with SLOs and error budgets. In job listings, the roles overlap heavily; SRE roles usually expect more coding and on-call work.
What is platform engineering, and is it replacing DevOps?
Platform engineering is the practice of building internal self-service platforms so application teams can deploy, observe and operate services without deep infrastructure knowledge. It builds on DevOps rather than replacing it. The 2025 DORA report found platform engineering to be very widespread among surveyed organizations.
Will AI replace DevOps engineers?
AI coding assistants already write pipeline YAML, Terraform and scripts, and that will only improve. What they do not remove is the need for someone to design reliable systems, understand failures, own security and cost, and decide trade-offs. DORA’s 2025 research describes AI as an amplifier of the system it is used in, which makes good platforms and practices more valuable, not less. Learn to use AI tools well, and verify everything they produce, especially IAM policies and anything touching production.
Can I learn DevOps on Windows or a Mac?
Yes. Use WSL 2 on Windows or a Linux VM on macOS. Everything in this roadmap can be done on a laptop with 16 GB of RAM; 8 GB works if you use kind or k3d with small clusters.
How much does it cost to learn DevOps?
It can be nearly free: all the core resources in this guide are free, cloud free tiers cover most exercises if you clean up, and local Kubernetes is free. The main optional costs are certifications and paid books.
What should I do after landing my first DevOps job?
Volunteer for on-call shadowing, read your company’s postmortems, automate something painful for your teammates, and pick one area (Kubernetes, security, observability, or a cloud) to go deep on.
Where to Go Next
- Go deeper on Kubernetes: do Kubernetes the Hard Way, then write a small operator in Go.
- Go deeper on reliability: read the remaining chapters of both free SRE books and practice capacity planning and load testing.
- Go deeper on security: study for CKS, explore supply-chain security (SLSA, Sigstore) and cloud security posture.
- Go deeper on platforms: read Team Topologies and Platform Engineering, and contribute to Backstage, Crossplane or another CNCF project.
- Learn system design: reliable distributed systems design is what separates senior engineers. Start with the System Design Primer.
- Contribute to open source: the CNCF Landscape lists hundreds of projects; most label “good first issue” tasks.
- Follow the research: read each year’s DORA report at dora.dev.
Contributing
Corrections and improvements are welcome. Good contributions:
- Fix a broken link or outdated fact (include a source).
- Suggest a free, high-quality resource with a one-line reason it belongs.
- Add an exercise or project idea you have actually completed.
Please keep the guide vendor-neutral, mark paid resources as paid, and never add links to pirated material or exam dumps. Open an issue or a pull request.
If this helped you, a star helps others find it.
License
This guide is licensed under CC BY 4.0. You may share and adapt it with attribution.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.