terraform-aks
Documentation
https://www.terraform.io/docs/providers/azurerm/r/kubernetes_cluster.html
Usage
-
Edit variables in
terraform.tfvars
-
After editing;
terraform init
terraform plan
terraform apply
⎈ Terraform Azure Kubernetes Service (AKS) sample
License: MIT License
https://www.terraform.io/docs/providers/azurerm/r/kubernetes_cluster.html
Edit variables in terraform.tfvars
After editing;
terraform init
terraform plan
terraform apply
I ran the example below, and I got this error every time:
When I create a cluster with the "az create..." command line works fine.
That happends to somebody else too?
Thanks.
Terraform Version
Terraform v0.11.7
provider.azurerm v1.5.0
Affected Resource(s)
azurerm_kubernetes_cluster
**AZ Command Line **
az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 1 --generate-ssh-keys
Debug Output
`Error: Error applying plan:
1 error(s) occurred:
* azurerm_kubernetes_cluster.test: 1 error(s) occurred:
* azurerm_kubernetes_cluster.test: containerservice.ManagedClustersClient#CreateOrUpdate
: Failure sending request: StatusCode=400 -- Original Error: Code="" Message=""`
Terraform Configuration Files
resource "azurerm_resource_group" "akstest002523900909" {
name = "${var.terraform_azure_resource_group}"
location = "${var.terraform_azure_region}"
}
resource "azurerm_kubernetes_cluster" "akstest002523900909" {
name = "akstest"
location = "${azurerm_resource_group.akstest002523900909.location}"
resource_group_name = "${azurerm_resource_group.akstest002523900909.name}"
dns_prefix = "${azurerm_resource_group.akstest002523900909.name}"
kubernetes_version = "${var.terraform_aks_kubernetes_version}"
linux_profile {
admin_username = "${var.terraform_azure_admin_name}"
ssh_key {
key_data = "${var.terraform_azure_ssh_key}"
}
}
agent_pool_profile {
name = "agentpool"
count = "${var.terraform_aks_agent_vm_count}"
vm_size = "${var.terraform_aks_vm_size}"
}
service_principal {
client_id = "${var.terraform_azure_service_principal_client_id}"
client_secret = "${var.terraform_azure_service_principal_client_secret}"
}
}
Panic Output
None
Expected Behavior
A cluster creation
Actual Behavior
Just show this error
Error: Error applying plan:
1 error(s) occurred:
* azurerm_kubernetes_cluster.test: 1 error(s) occurred:
* azurerm_kubernetes_cluster.test: containerservice.ManagedClustersClient#CreateOrUpdate:
Failure sending request: StatusCode=400 -- Original Error: Code="" Message=""
References
None
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.