Add ovhk8scluster_20261110_053255.tf
This commit is contained in:
parent
e7de80498e
commit
ce7380dc9a
48
ovhk8scluster_20261110_053255.tf
Normal file
48
ovhk8scluster_20261110_053255.tf
Normal 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
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user