From bf2f1f59398a15399eb4ff9e6a8b58de5d66d12c Mon Sep 17 00:00:00 2001 From: Tom Archer Date: Mon, 1 Jul 2024 19:21:33 -0700 Subject: [PATCH] completed readme --- quickstart/101-aks-cluster-windows/README.md | 9 ++++++++- quickstart/101-aks-cluster-windows/article | 0 quickstart/101-aks-cluster-windows/outputs.tf | 17 +++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) delete mode 100644 quickstart/101-aks-cluster-windows/article diff --git a/quickstart/101-aks-cluster-windows/README.md b/quickstart/101-aks-cluster-windows/README.md index e257e737..071782ad 100644 --- a/quickstart/101-aks-cluster-windows/README.md +++ b/quickstart/101-aks-cluster-windows/README.md @@ -6,6 +6,10 @@ This template deploys an AKS cluster with Windows nodes. - [random_pet](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) - [azurerm_resource_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) +- [random_string](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string) +- [azurerm_virtual_network](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_network) +- [azurerm_kubernetes_cluster](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster) +- [azurerm_kubernetes_cluster_node_pool](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster_node_pool) ## Variables @@ -13,6 +17,9 @@ This template deploys an AKS cluster with Windows nodes. |-|-|-| | `resource_group_name_prefix` | Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription. | rg | | `resource_group_location` | Location of the resource group. | eastus | +| `node_count_linux` | Initial quantity of Linux nodes for the node pool. | 1 | +| `node_count_windows` | Initial quantity of Windows nodes for the node pool. | 1 | +| `admin_username` | Admin username for the Windows node pool. | azureuser | +| `admin_password` | Admin password for the Windows node pool. | Passw0rd1234Us! | ## Example - diff --git a/quickstart/101-aks-cluster-windows/article b/quickstart/101-aks-cluster-windows/article deleted file mode 100644 index e69de29b..00000000 diff --git a/quickstart/101-aks-cluster-windows/outputs.tf b/quickstart/101-aks-cluster-windows/outputs.tf index 62816bd7..7067a430 100644 --- a/quickstart/101-aks-cluster-windows/outputs.tf +++ b/quickstart/101-aks-cluster-windows/outputs.tf @@ -1,3 +1,20 @@ output "resource_group_name" { value = azurerm_resource_group.rg.name } + +output "kubernetes_cluster_name" { + value = azurerm_kubernetes_cluster.aks.name +} + +output "kubernetes_cluster_dns_prefix" { + value = azurerm_kubernetes_cluster.aks.dns_prefix +} + +output "kubernetes_cluster_node_pool_name" { + value = azurerm_kubernetes_cluster_node_pool.win.name +} + +output "kubernetes_cluster_kube_config_raw" { + value = azurerm_kubernetes_cluster.aks.kube_config_raw + sensitive = true +} \ No newline at end of file