Skip to content

Commit 6a20ec6

Browse files
committed
Adding Terraform deployment steps into Mariner doc
1 parent 73f73e4 commit 6a20ec6

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

articles/aks/cluster-configuration.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to configure a cluster in Azure Kubernetes Service (AKS)
44
services: container-service
55
ms.topic: article
66
ms.custom: ignite-2022
7-
ms.date: 12/06/2022
7+
ms.date: 12/09/2022
88
---
99

1010
# Configure an AKS cluster
@@ -293,6 +293,32 @@ az aks get-credentials --resource-group MarinerTest --name testMarinerCluster
293293
kubectl get pods --all-namespaces
294294
```
295295

296+
### Deploy an AKS Mariner cluster with Terraform
297+
298+
To deploy a Mariner cluster with Terraform, you first need to set your `azurerm` provider to version 2.76 or higher.
299+
300+
```
301+
required_providers {
302+
azurerm = {
303+
source = "hashicorp/azurerm"
304+
version = "~> 2.76"
305+
}
306+
}
307+
```
308+
309+
Once you've updated your `azurerm` provider, you can specify the Mariner `os_sku` in `default_node_pool`.
310+
311+
```
312+
default_node_pool {
313+
name = "default"
314+
node_count = 2
315+
vm_size = "Standard_D2_v2"
316+
os_sku = "CBLMariner"
317+
}
318+
```
319+
320+
Similarly, you can specify the Mariner `os_sku` in [`azurerm_kubernetes_cluster_node_pool`][azurerm-mariner].
321+
296322
## Custom resource group name
297323

298324
When you deploy an Azure Kubernetes Service cluster in Azure, a second resource group is created for the worker nodes. By default, AKS names the node resource group `MC_resourcegroupname_clustername_location`, but you can also specify a custom name.
@@ -418,6 +444,7 @@ az aks oidc-issuer rotate-signing-keys -n myAKSCluster -g myResourceGroup
418444

419445
<!-- LINKS - external -->
420446
[aks-release-notes]: https://github.com/Azure/AKS/releases
447+
[azurerm-mariner]: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster_node_pool#os_sku
421448

422449
<!-- LINKS - internal -->
423450
[azure-cli-install]: /cli/azure/install-azure-cli

0 commit comments

Comments
 (0)