Phase 7: Internal Developer Portals (IDP)
๐ง Beginner Mental Model (Explain Like Iโm 5)
Even if you build the best Kubernetes, Terraform, and security tools in the world, if developers have to read 200 pages of documentation and write 1,500 lines of YAML to launch an app, they will hate the platform.
- Internal Developer Portal (Spotify Backstage): The โApple App Storeโ for your engineering organizationโdevelopers click one button (Golden Path Template) to scaffold a compliant microservice, view its live docs (TechDocs), and track its production readiness (Scorecards).
- Chaos Mesh: A controlled fire-drill engine that injects network latency and pod crashes in staging so you fix weak spots before real outages happen.
๐งญ Step-by-Step Execution Playbook for Phase 7
- Step 1 (Software Catalog): Model
Domain โ System โ Component โ API โ Resourcein Lesson 1. - Step 2 (Self-Service Scaffolder): Author Golden Path templates in Lesson 2.
- Step 3 (Docs, Governance & Chaos): Deploy CI/CD TechDocs (Lesson 3), RBAC & Scorecards (Lesson 4), and Chaos Mesh experiments (Lesson 5).
๐ Deep-Dive Index
1. Platform Engineering & DevEx
- The Goal: Abstracting all previous phases (Terraform, K8s, GitOps) behind a self-service GUI for application developers.
- Backstage Architecture: Frontend (React), Backend (Node.js), PostgreSQL database.
2. Core Components
- Software Catalog:
catalog-info.yamlentity definitions (Components, APIs, Resources, Systems, Domains). - TechDocs: Markdown docs living alongside code, rendered centrally.
- Software Templates (Scaffolder): Nunjucks templating, triggering custom actions (GitHub Actions, Jenkins).
3. Resilience & GameDays (Chaos Engineering)
- Chaos Mesh in Kubernetes: Injecting faults into container network namespaces via Linux Traffic Control (
tc) and kernel signals. - Production CRDs:
NetworkChaos(cross-AZ latency/jitter/packet loss),PodChaos(random pod-kill validating PDBs), andHTTPChaos(504 gateway timeout injection). - Automated CI/CD Chaos Gates: Verifying SLO compliance under active chaos experiments before production promotion.
๐ ๏ธ Job-Essential Exercises
- Scaffolding the Portal:
- Use
npx @backstage/create-appto launch a local IDP. Register an existing GitHub repository to the Backstage Software Catalog.
- Use
- The Golden Path Template:
- Write a
template.yamlfor Backstage. The UI should ask the developer for aProject Name. When submitted, Backstage should automatically create a new GitHub repository, inject a boilerplate Python application into it, and inject the GitHub Actions DevSecOps pipeline you built in Phase 3.
- Write a