How do you handle environment-specific configuration without rebuilding?
BeginnerProductionPipeline Design and Architecture
Answer
Follow the twelve-factor rule: config in the environment. The image is identical everywhere; environment differences come from Helm values files, Kustomize overlays, ConfigMaps, and secrets from a secret manager (External Secrets Operator, SSM/Parameter Store). Never bake URLs or credentials into the image. Keep per-environment values in the config repo, reviewed like code.
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