How would you design CI/CD for 200 microservices in 30 teams?
AdvancedProductionPipeline Design and Architecture
Answer
- Golden path templates: shared workflows/components per language, owned by a platform team, versioned.
- Self-service: a repo scaffold (Backstage template) creates the app, pipeline, and GitOps entries together.
- Ephemeral runners on Kubernetes (ARC / GitLab Kubernetes executor), autoscaled, with separate pools for untrusted and deploy jobs.
- GitOps for deployment: CI updates a config repo, Argo CD/Flux deploys, so CI has no cluster credentials.
- Policy gates enforced centrally: required scans via rulesets or policy, image signing, admission control (Kyverno/Gatekeeper) verifying signatures.
- Observability: DORA metrics per team from deployment events, pipeline duration/failure dashboards.
- Governance: deprecation windows for template versions, platform office hours.
The trade-off is standardisation versus autonomy; we keep the paved road easy and allow escape hatches that are visible and audited.
More on Pipeline Design and Architecture
What does a good production CI/CD pipeline look like end to end?BeginnerWhat is your target feedback time for CI and how do you hit it?IntermediateHow do you structure repositories: app repo, config repo, pipeline library?IntermediateHow do you design a pipeline for a monorepo with 50 services?AdvancedShould every merge to main deploy to production automatically?IntermediateHow do you keep pipeline definitions DRY across hundreds of repos?Intermediate