From 1b2989098d6a48f89fc681ca091fb42b5487b4e1 Mon Sep 17 00:00:00 2001 From: Tomas Hehejik Date: Tue, 8 Oct 2024 13:52:12 +0200 Subject: [PATCH] Don't use SSH for AKS nodes (#178) Signed-off-by: Tomas Hehejik --- hosted/aks/helper/helper_cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosted/aks/helper/helper_cluster.go b/hosted/aks/helper/helper_cluster.go index 024d6b2..2ce8612 100644 --- a/hosted/aks/helper/helper_cluster.go +++ b/hosted/aks/helper/helper_cluster.go @@ -474,7 +474,7 @@ func CreateAKSClusterOnAzure(location string, clusterName string, k8sVersion str } fmt.Println("Creating AKS cluster ...") - args := []string{"aks", "create", "--resource-group", clusterName, "--generate-ssh-keys", "--kubernetes-version", k8sVersion, "--enable-managed-identity", "--name", clusterName, "--subscription", subscriptionID, "--node-count", nodes, "--tags", formattedTags, "--location", location} + args := []string{"aks", "create", "--resource-group", clusterName, "--no-ssh-key", "--kubernetes-version", k8sVersion, "--enable-managed-identity", "--name", clusterName, "--subscription", subscriptionID, "--node-count", nodes, "--tags", formattedTags, "--location", location} args = append(args, clusterCreateArgs...) fmt.Printf("Running command: az %v\n", args) out, err = proc.RunW("az", args...)