Closed maxkochubey closed 4 years ago
Action required from @Azure/aks-pm
Action required from @Azure/aks-pm
@maxkochubey: can you verify with latest Terraform Azurerm provider?
Hi @TomGeske, I tried to deploy AKS cluster with
and got the following error:
module.aks_cluster.azurerm_kubernetes_cluster.aks: Creating...
Error: creating Managed Kubernetes Cluster "aks-dev01" (Resource Group "aks-dev01"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="The value of parameter linuxProfile.ssh.publicKeys.keyData is invalid. Please see https://aka.ms/aks-naming-rules for more details." Target="linuxProfile.ssh.publicKeys.keyData"
on ../../../../modules/azure/aks_cluster/main.tf line 54, in resource "azurerm_kubernetes_cluster" "aks":
54: resource "azurerm_kubernetes_cluster" "aks" {
The var.ssh_public_key
is a string variable:
ssh_public_key = "ssh-ed25519 AAAAC3NzaC1lBLABLAE5AAAAIBAF9DSGLefFlLWXppFaj4jk7kIpA7950ynBW3C8FXDz user@host"
Action required from @Azure/aks-pm
I just had a look. ED25519 isn't supported by Azure VMs.
/Azure/azure-cli#9780
Thanks for reaching out. I'm closing this issue as it was marked with "Answer Provided" and it hasn't had activity for 2 days.
What happened: I tried to deploy AKS cluster with terraform (using recent azurerm provider) and specified SSH ed25519 public key. Got error:
Error: Error creating/updating Managed Kubernetes Cluster "aks-test" (Resource Group "aks-test-rg"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="The value of parameter linuxProfile.ssh.publicKeys.keyData is invalid. Please see https://aka.ms/aks-naming-rules for more details." Target="linuxProfile.ssh.publicKeys.keyData"
With newly generated 4096-bit RSA-key everything is fine. Obvious that it isn't terraform provider issue, because error was received from Azure API.
What you expected to happen: Working Kubernetes cluster with provided public SSH key, deployed to admin user profile on agent nodes.
How to reproduce it (as minimally and precisely as possible): I guess, to generate an ed25519 SSH key and provide it on AKS cluster setup.
Environment:
kubectl version
): 1.4.6