- Install Minikube (https://kubernetes.io/en/docs/tasks/tools/install-minikube/)
- The example uses VirtualBox as the driver.
- Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
terraform init
- Generates a speculative execution plan
terraform plan
- Creates or updates infrastructure according to Terraform configuration files in the current directory.
terraform apply
- check namespace
kubectl get ns
kubectl describe ns application
- Clean up. Destroy Terraform-managed infrastructure.
terraform destroy
- Example running with variable values in the command line interface
terraform apply -var 'namespace=production' -var 'pod-cpu=400m' -var 'pod-memory=2048Mi' -var 'container-cpu=30M' -var 'container-mem=48Mi'