diff --git a/azure/terraform/rancher.tf b/azure/terraform/rancher.tf new file mode 100644 index 0000000..b1358d3 --- /dev/null +++ b/azure/terraform/rancher.tf @@ -0,0 +1,28 @@ +resource "azurerm_resource_group" "rancher_rg" { + name = "euwest-rancher" + location = "westeurope" + + tags = { + environment = "rancher" + } +} + +# kubernetes cluster for compute and storage +module "rancher_aks_cluster" { + source = "./modules/kubernetes" + cluster_name = "euwest-rancher" + resource_group = azurerm_resource_group.rancher_rg.name + + minimal_pool_count = 1 + maximal_pool_count = 3 + node_type = "Standard_B2ms" + public_ip_provisioning = false + + depends_on = [ + azurerm_resource_group.rancher_rg + ] +} + +output "rancher_aks_summary" { + value = module.rancher_aks_cluster.summary +}