DevOps Engineering Mastery
Production-grade infrastructure, deployment, and operations across Docker, Kubernetes, Cloudflare, and Google Cloud Platform.
Platform Selection
| Need |
Choose |
Why |
| Sub-50ms latency globally |
Cloudflare Workers |
Edge computing, 300+ PoPs |
| Large file storage (zero egress) |
Cloudflare R2 |
S3-compatible, no egress fees |
| SQL database (global reads) |
Cloudflare D1 |
SQLite at the edge |
| Static site + API |
Cloudflare Pages |
Git-based, auto-deploy |
| Containerized workloads |
Docker + Cloud Run |
Auto-scaling, pay-per-use |
| Enterprise Kubernetes |
GKE |
Managed K8s, Autopilot |
| Managed relational DB |
Cloud SQL |
PostgreSQL/MySQL managed |
| Infrastructure as Code |
Terraform |
Multi-cloud, declarative |
| CI/CD pipelines |
GitHub Actions |
Native Git integration |
Quick Start
# Docker: build + run
docker build -t myapp . && docker run -p 3000:3000 myapp
# Docker Compose: multi-service
docker compose up -d
# Cloudflare Worker
npx wrangler init my-worker && cd my-worker && npx wrangler deploy
# GCP Cloud Run
gcloud run deploy my-service --image gcr.io/project/image --region us-central1
# Kubernetes
kubectl apply -f manifests/ && kubectl get pods
# Terraform
terraform init && terraform plan && terraform apply
Reference Navigation
Containerization
- Docker Fundamentals — Dockerfile best practices, multi-stage builds, layer caching, security
- Docker Compose — Multi-service apps, networks, volumes, health checks, profiles
- Container Optimization — Image size reduction, build caching, security scanning, distroless
Orchestration
- Kubernetes Core — Pods, Deployments, Services, ConfigMaps, Secrets, Namespaces
- Kubernetes Operations — kubectl mastery, debugging, resource management, scaling
- Helm Charts — Chart structure, templates, values, hooks, repositories
- Kubernetes Security — RBAC, NetworkPolicies, PodSecurityStandards, secrets management
- GitOps & CI/CD — ArgoCD, Flux, GitHub Actions, progressive delivery
Cloud Platforms
- Cloudflare Platform — Workers, R2, D1, KV, Pages, Queues, Durable Objects
- GCP Services — Cloud Run, GKE, Cloud SQL, Cloud Storage, IAM
Infrastructure as Code
- Terraform Patterns — Modules, state management, workspaces, best practices
Monitoring & Observability
- Monitoring Stack — Prometheus, Grafana, alerting, SLIs/SLOs, log aggregation
Architecture Patterns
Development → Staging → Production
Local Dev: Docker Compose (all services locally)
CI/CD: GitHub Actions → build → test → push image
Staging: Cloud Run (auto-deploy on PR merge to staging)
Production: Cloud Run / GKE (deploy on release tag)
Cost Optimization
| Strategy |
Savings |
| Multi-stage Docker builds |
50-80% image size reduction |
| Cloudflare R2 over S3 |
Zero egress fees |
| Spot/preemptible instances |
60-80% compute savings |
| Cloud Run vs always-on |
Pay only for requests |
| Resource limits on K8s |
Prevent over-provisioning |
Best Practices
Containers: Non-root user, multi-stage builds, .dockerignore, health checks, security scanning
Kubernetes: Resource limits, PDB, HPA, NetworkPolicies, secrets encryption, namespace isolation
CI/CD: Fast feedback (lint → unit → build → integration → deploy), cache dependencies, parallel jobs
Security: Image scanning, RBAC, secrets in vault, TLS everywhere, audit logging
Monitoring: RED metrics (Rate, Errors, Duration), SLIs/SLOs, alerting on symptoms not causes
Related Skills
1---2name: devops3description: Production-grade DevOps — Docker (multi-stage builds, Compose, optimization), Kubernetes (kubectl, Helm, security, GitOps), Cloudflare (Workers, R2, D1, Pages), GCP (Cloud Run, GKE, Cloud SQL), CI/CD pipelines, Terraform/IaC, monitoring, multi-region deployment. Use for containerization, orchestration, serverless, infrastructure as code, and deployment automation.4license: MIT5---67# DevOps Engineering Mastery89Production-grade infrastructure, deployment, and operations across Docker, Kubernetes, Cloudflare, and Google Cloud Platform.1011## Platform Selection1213| Need | Choose | Why |14|------|--------|-----|15| Sub-50ms latency globally | Cloudflare Workers | Edge computing, 300+ PoPs |16| Large file storage (zero egress) | Cloudflare R2 | S3-compatible, no egress fees |17| SQL database (global reads) | Cloudflare D1 | SQLite at the edge |18| Static site + API | Cloudflare Pages | Git-based, auto-deploy |19| Containerized workloads | Docker + Cloud Run | Auto-scaling, pay-per-use |20| Enterprise Kubernetes | GKE | Managed K8s, Autopilot |21| Managed relational DB | Cloud SQL | PostgreSQL/MySQL managed |22| Infrastructure as Code | Terraform | Multi-cloud, declarative |23| CI/CD pipelines | GitHub Actions | Native Git integration |2425## Quick Start2627```bash28# Docker: build + run29docker build -t myapp . && docker run -p 3000:3000 myapp3031# Docker Compose: multi-service32docker compose up -d3334# Cloudflare Worker35npx wrangler init my-worker && cd my-worker && npx wrangler deploy3637# GCP Cloud Run38gcloud run deploy my-service --image gcr.io/project/image --region us-central13940# Kubernetes41kubectl apply -f manifests/ && kubectl get pods4243# Terraform44terraform init && terraform plan && terraform apply45```4647## Reference Navigation4849### Containerization50- **[Docker Fundamentals](references/docker-fundamentals.md)** — Dockerfile best practices, multi-stage builds, layer caching, security51- **[Docker Compose](references/docker-compose.md)** — Multi-service apps, networks, volumes, health checks, profiles52- **[Container Optimization](references/container-optimization.md)** — Image size reduction, build caching, security scanning, distroless5354### Orchestration55- **[Kubernetes Core](references/kubernetes-core.md)** — Pods, Deployments, Services, ConfigMaps, Secrets, Namespaces56- **[Kubernetes Operations](references/kubernetes-ops.md)** — kubectl mastery, debugging, resource management, scaling57- **[Helm Charts](references/helm-charts.md)** — Chart structure, templates, values, hooks, repositories58- **[Kubernetes Security](references/kubernetes-security.md)** — RBAC, NetworkPolicies, PodSecurityStandards, secrets management59- **[GitOps & CI/CD](references/gitops-cicd.md)** — ArgoCD, Flux, GitHub Actions, progressive delivery6061### Cloud Platforms62- **[Cloudflare Platform](references/cloudflare-platform.md)** — Workers, R2, D1, KV, Pages, Queues, Durable Objects63- **[GCP Services](references/gcp-services.md)** — Cloud Run, GKE, Cloud SQL, Cloud Storage, IAM6465### Infrastructure as Code66- **[Terraform Patterns](references/terraform-patterns.md)** — Modules, state management, workspaces, best practices6768### Monitoring & Observability69- **[Monitoring Stack](references/monitoring-stack.md)** — Prometheus, Grafana, alerting, SLIs/SLOs, log aggregation7071## Architecture Patterns7273### Development → Staging → Production74```75Local Dev: Docker Compose (all services locally)76CI/CD: GitHub Actions → build → test → push image77Staging: Cloud Run (auto-deploy on PR merge to staging)78Production: Cloud Run / GKE (deploy on release tag)79```8081### Cost Optimization82| Strategy | Savings |83|----------|---------|84| Multi-stage Docker builds | 50-80% image size reduction |85| Cloudflare R2 over S3 | Zero egress fees |86| Spot/preemptible instances | 60-80% compute savings |87| Cloud Run vs always-on | Pay only for requests |88| Resource limits on K8s | Prevent over-provisioning |8990## Best Practices9192**Containers:** Non-root user, multi-stage builds, .dockerignore, health checks, security scanning93**Kubernetes:** Resource limits, PDB, HPA, NetworkPolicies, secrets encryption, namespace isolation94**CI/CD:** Fast feedback (lint → unit → build → integration → deploy), cache dependencies, parallel jobs95**Security:** Image scanning, RBAC, secrets in vault, TLS everywhere, audit logging96**Monitoring:** RED metrics (Rate, Errors, Duration), SLIs/SLOs, alerting on symptoms not causes9798## Related Skills99100| Skill | When to Use |101|-------|-------------|102| [rust-backend-advance](../rust-backend-advance/SKILL.md) | Containerizing Rust apps, deployment configs |103| [databases](../databases/SKILL.md) | Database hosting, replication, backups |104| [testing](../testing/SKILL.md) | CI/CD test pipeline integration |105| [debugging](../debugging/SKILL.md) | Production incident investigation |