Skip to content

Commit

Permalink
Document NLK creation via Terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetsarna committed Oct 27, 2024
1 parent 877ab32 commit a829c9b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions terraform/extensions/nlk/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
terraform {
required_version = "~> 1.3"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.97"
}
}
}

provider "azurerm" {
features {}
}

resource "azurerm_kubernetes_cluster_extension" "nlk" {
name = "test-ext"
# fill out cluster ID.
cluster_id = "/subscriptions/ee920d60-90f3-4a92-b5e7-bb284c3a6ce2/resourceGroups/testenv-900d48c0-aks-resources/providers/Microsoft.ContainerService/managedClusters/testenv-900d48c0-aks"
extension_type = "nginxinc.nginxaas-aks-extension"
release_namespace = "nlk"
# release_train will be "Stable" after publishing the offer.
release_train = "Preview"
plan {
name = "f5-nginx-for-azure-aks-extension"
product = "f5-nginx-for-azure-aks-extension"
publisher = "f5-networks"
}

configuration_settings = {
"nlk.dataplaneApiKey" = "testmyKey123456!"
"nlk.config.nginxHosts" = "https://nlkdemo-d81e16277aa1.westcentralus.nginxaas.net/nplus"
}
}

0 comments on commit a829c9b

Please sign in to comment.