No description
- HCL 100%
|
|
||
|---|---|---|
| .gitignore | ||
| .terraform.lock.hcl | ||
| backend.tf | ||
| main.tf | ||
| README.md | ||
| variables.tf | ||
Configuration
The recommened kubeconfig file location for Fundament is used by
default, which is ~/.kube/fundament.yaml.
This can be changed by setting the kubeconfig variable.
For example by adding it to the terraform.tfvars file:
kubeconfig = "~/.kube/config"
Another option is passing it through an environment variable:
export TF_VAR_kubeconfig=$KUBECONFIG
Bootstrap
For shared state the Kubernetes backend is used, which requires first creating the namespace to store it in:
rm -rf .terraform backend.tf
tofu init
tofu apply -target 'fundament_namespace.bkwi["ci"]'
git restore backend.tf
tofu init -migrate-state
tofu apply