Open rajesh-chawla opened 5 years ago
In your output file you can use this:
output "kube_config" {
value = azurerm_kubernetes_cluster.test.kube_config_raw
}
@eugen-ananin that fails when using this as a module, as documented here https://registry.terraform.io/modules/Azure/appgw-ingress-k8s-cluster/azurerm/0.1.1 Should this project define outputs.tf file for attributes - AKS(https://www.terraform.io/docs/providers/azurerm/r/kubernetes_cluster.html#attributes-reference) and App Gateway (https://www.terraform.io/docs/providers/azurerm/r/application_gateway.html#attributes-reference)
I created a pull request that should address this issue - https://github.com/Azure/terraform-azurerm-appgw-ingress-k8s-cluster/pull/7
I've been able to successfully invoke this module and now I'd like to download the kubeconfig file from the k8s cluster created.
I don't see any items as output from the module, so I'm looking for suggestions on how to get access to the kubeconfig file for the k8s cluster after calling the module.
Regards, Rajesh