You are managing environment promotion by overlaying Kustomize patches for 'prod', 'staging', and 'dev'. Which TWO of the following practices follow the GitOps principle of 'single source of truth' for environment configuration?
Trap 1: Hardcoding environment-specific image tags in the base templates
Hardcoding in the base violates the overlay principle.
Trap 2: Storing all environment manifests in a single monolithic flat…
This leads to configuration drift and makes promotion difficult.
Trap 3: Duplicating all YAML files for every environment
Duplication violates the DRY principle and makes maintenance error-prone.
- A
Hardcoding environment-specific image tags in the base templates
Why wrong: Hardcoding in the base violates the overlay principle.
- B
Using a 'base' directory for common resources and 'overlays' for environment differences
This is the recommended Kustomize pattern for environment management.
- C
Storing all environment manifests in a single monolithic flat directory
Why wrong: This leads to configuration drift and makes promotion difficult.
- D
Duplicating all YAML files for every environment
Why wrong: Duplication violates the DRY principle and makes maintenance error-prone.
- E
Referencing the base path via an absolute URL in kustomization.yaml
Referencing the base ensures consistent configuration across environments.