Combine a base config with environment-specific overrides.
Section: Anchors and aliases
Merge shared mappings
yaml
yaml
base: &base
image: node:20
pullPolicy: IfNotPresent
prod:
<<: *base
replicas: 3Explanation
The merge key `<<` is widely used in tooling that supports YAML merge semantics.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Anchors and aliases