From d3e770254de0bb301815ca87257c8b1a357d06c4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 26 Apr 2026 21:02:47 +0800 Subject: hehe --- terraform/envs/agent/main.tf | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 terraform/envs/agent/main.tf (limited to 'terraform/envs/agent/main.tf') diff --git a/terraform/envs/agent/main.tf b/terraform/envs/agent/main.tf new file mode 100644 index 0000000..122eaca --- /dev/null +++ b/terraform/envs/agent/main.tf @@ -0,0 +1,27 @@ +provider "kubernetes" { + config_path = pathexpand(var.kubeconfig) + config_context = var.kube_context +} + +module "agent" { + source = "../../modules/agent" + + namespace = "agent" + agent_source_path = var.agent_source_path + + # Point at the prod LLM. `svc.cluster.local` resolves from any namespace. + llm_service_url = "http://llm-llm-app.llm-prod.svc.cluster.local:8000/v1" + model_alias = "Qwen2.5-1.5B-Instruct" + + ingress_host = "agent.localtest.me" +} + +output "ingress_host" { value = module.agent.ingress_host } +output "service_dns" { value = module.agent.service_dns } +output "curl_example" { + value = <<-EOT + curl -s http://${module.agent.ingress_host}:8080/ask \ + -H 'Content-Type: application/json' \ + -d '{"question":"what is 123 * 47?"}' + EOT +} -- cgit