Add psoautomationk8sovh_20261110_102857.tf

This commit is contained in:
gitops_test 2026-11-10 10:29:06 +00:00
parent 592f4edc21
commit 117c18cb3c

View File

@ -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 "<requesterUniqueId>_<timestamp>".
# 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
}