Terraform module that creates a local kind cluster and installs the RagLeap Helm charts onto it. Tested on a real cluster; no cloud modules yet.
Usage
The .tf files ship in the wheel under ragleap_terraform/modules and ragleap_terraform/examples, and in the repo under packages/ragleap-terraform/.
cd packages/ragleap-terraform/examples/kind terraform init terraform apply
Requires Docker, Terraform >= 1.5 and the ragleap-observability chart (the example points at the repo copy).
Variables
cluster_name(defaultragleap-tf),namespace(defaultragleap-core)install_observability(defaulttrue),observability_chart_pathgrafana_admin_password(sensitive; empty uses the chart's placeholder, which is not safe beyond a local test)install_postgres_exporter(defaultfalse, see below)helm_timeout(seconds, default 300),kubeconfig_path
Known limitations
- postgres-exporter is off by default. It needs the
ragleap-opsdatabase and the Secretragleap-db-exporter-secret. No chart creates that Secret yet, and this module does not installragleap-ops. - Credentials:
terraform.tfstateand the generated kubeconfig contain cluster credentials in plain text. Never commit them. - Never press Ctrl+C during
applyordestroy. During testing it left a cluster running with no state. Checkterraform state listbefore deleting state files. - If a cluster is left behind:
kind delete cluster --name ragleap-tf. - Always set
kubeconfig_pathso your own kubectl context is not touched.