Skip to content

Commit

Permalink
Don't use SSH for AKS nodes (#178)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Hehejik <thehejik@suse.com>
  • Loading branch information
thehejik authored Oct 8, 2024
1 parent 396e1ae commit 1b29890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hosted/aks/helper/helper_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down

0 comments on commit 1b29890

Please sign in to comment.