From d37f4ba61dff6e18569b0d47b1ae81b3b2a59371 Mon Sep 17 00:00:00 2001 From: gitops_test Date: Tue, 10 Nov 2026 05:54:54 +0000 Subject: [PATCH] Add ovhk8scluster_20261110_055445.tf --- ovhk8scluster_20261110_055445.tf | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 ovhk8scluster_20261110_055445.tf diff --git a/ovhk8scluster_20261110_055445.tf b/ovhk8scluster_20261110_055445.tf new file mode 100644 index 0000000..2fc67d2 --- /dev/null +++ b/ovhk8scluster_20261110_055445.tf @@ -0,0 +1,48 @@ +# OVH Managed Kubernetes cluster built from the provisioner catalog module "kubernetes". +# The provisioner rewrites the module source to the OVH submodule and fills the deployment id +# and the cloud account. Cloud credentials come from Vault, never from this file. +# +# Two workarounds for infrastructure-be (checked on main, 2026-10-15): +# 1. infrastructure-be refuses a Terraform script that has no non-empty user data field. +# The unused local below satisfies that check; Terraform ignores unused locals. +# 2. infrastructure-be does not send the requester id Kafka header when provisioning, so the +# catalog placeholder for it cannot be used. infrastructure-be instead replaces the +# special variable name used below with "_". +# Effect: the consumer kubeconfig lands in Vault under that suffixed id. + +locals { + user_data = "I2Nsb3VkLWNvbmZpZwo=" +} + +module "kubernetes" { + source = "{KUBERNETES_SOURCE}" + deployment_id = "{UUID}" + region = "SBG5" + cloud_account = "{CLOUD_ACCOUNT}" + requester_unique_id = "var.simpl_requester_unique_id" + + nodepool_flavor = "b3-8" + nodepool_desired_nodes = 1 + nodepool_min_nodes = 1 + nodepool_max_nodes = 1 +} + +output "cluster_id" { + value = module.kubernetes.cluster_id +} + +output "cluster_name" { + value = module.kubernetes.cluster_name +} + +output "cluster_url" { + value = module.kubernetes.cluster_url +} + +output "cluster_version" { + value = module.kubernetes.cluster_version +} + +output "credentials_ref" { + value = module.kubernetes.credentials_ref +}