Interview Prep/CI/CD/Pipeline Design and Architecture

How do you design a pipeline that works for both Kubernetes and VM-based deployments?

AdvancedProductionPipeline Design and Architecture
Answer

Keep the artifact stage identical (immutable, versioned, signed) and make the deploy stage pluggable behind a small contract: deploy(env, version) and verify(env, version). Kubernetes: Helm/Argo CD. VMs: Ansible or SSM Run Command pulling the versioned package, or baked AMIs with an ASG instance refresh. Both report to the same deployment record (for DORA metrics and audit). Common gates (tests, approvals, policy) sit before the deploy step and do not care about target type.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Pipeline Design and Architecture