Where do you draw the line between Terraform and Helm/Kubernetes providers for cluster add-ons?
IntermediateScenarioTesting Upgrades and Large-Scale Operations
Answer
Situation read → Platform bootstrapping.
What I'd do →
- Terraform: cluster, node groups, IAM roles for service accounts, and a minimal set of bootstrap add-ons (CNI, CoreDNS, Argo CD).
- GitOps tool: everything else, such as ingress controllers, monitoring and apps.
- Separate state for cluster and for bootstrap resources.
Why → Slow-moving infrastructure benefits from plan/apply; fast-moving workloads benefit from continuous reconciliation.
Interview tip → Avoid long helm_release lists in one state.
More on Testing Upgrades and Large-Scale Operations
What does each of `terraform validate`, `plan` and `terraform test` actually check?BeginnerWrite a native test for a module that creates an encrypted S3 bucket.IntermediateCompare Terratest with `terraform test`.IntermediateReal-cloud integration tests leave orphaned resources when they fail midway. How do you handle that?AdvancedHow do you upgrade from Terraform 1.5 to 1.9 safely?IntermediateMajor AWS provider upgrade from v4 to v5 (or v5 to v6) across many stacks. How do you plan it?Advanced