Before diving into Terraform, we need to understand the mental shift that Infrastructure as Code (IaC) represents.




From Imperative to Declarative


Imperative Approach (what we did in Chapter 1):



# Step 1: Do this
kubectl create namespace ollama

# Step 2: Now do that
kubectl create secret generic credentials...

# Step 3: Then do...