Skip to content

Commit a829c9b

Browse files
committed
Document NLK creation via Terraform
1 parent 877ab32 commit a829c9b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

terraform/extensions/nlk/main.tf

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
terraform {
2+
required_version = "~> 1.3"
3+
required_providers {
4+
azurerm = {
5+
source = "hashicorp/azurerm"
6+
version = "~> 3.97"
7+
}
8+
}
9+
}
10+
11+
provider "azurerm" {
12+
features {}
13+
}
14+
15+
resource "azurerm_kubernetes_cluster_extension" "nlk" {
16+
name = "test-ext"
17+
# fill out cluster ID.
18+
cluster_id = "/subscriptions/ee920d60-90f3-4a92-b5e7-bb284c3a6ce2/resourceGroups/testenv-900d48c0-aks-resources/providers/Microsoft.ContainerService/managedClusters/testenv-900d48c0-aks"
19+
extension_type = "nginxinc.nginxaas-aks-extension"
20+
release_namespace = "nlk"
21+
# release_train will be "Stable" after publishing the offer.
22+
release_train = "Preview"
23+
plan {
24+
name = "f5-nginx-for-azure-aks-extension"
25+
product = "f5-nginx-for-azure-aks-extension"
26+
publisher = "f5-networks"
27+
}
28+
29+
configuration_settings = {
30+
"nlk.dataplaneApiKey" = "testmyKey123456!"
31+
"nlk.config.nginxHosts" = "https://nlkdemo-d81e16277aa1.westcentralus.nginxaas.net/nplus"
32+
}
33+
}

0 commit comments

Comments
 (0)