AKS icon indicating copy to clipboard operation
AKS copied to clipboard

[BUG] AKS Disable SSH - Cluster Level [Preview] - New Node Pools gets created with SSH Enabled

Open harinarayanan-muthukumar opened this issue 2 years ago • 6 comments

Describe the bug To disable SSH on Existing AKS Clusters , 3 different options are being provided.

  1. Disable on new node pool creation
  2. Disable on entire existing Cluster
  3. Disable on existing Node pool

When we disable SSH on the entire Cluster , we have been advised to reimage all node pools to make sure every node pool gets the update configuration and the issues being observed here are 2 folds.

  1. When Disable SSH on existing cluster command is run , all the nodes in all node pool gets reimaged automatically and upon checking SSH status , the SSH gets disabled even before manual reimage is being attempted . But the documentation specifically asks us to again run the reimage command which is obsolete or I am missing something here.
  2. On a cluster that has SSH disabled entirely (az aks update --resource-group myResourceGroup --name myManagedCluster --ssh-access disabled), when we add a new node pool , one would expect the new node pools to automatically inherit SSH disabled configuration , but the new node pools gets created with SSH enabled which makes the cluster SSH disable command useless.

To Reproduce Steps to reproduce the behavior: Run the Cluster SSH Disable commands (az aks update --resource-group myResourceGroup --name myManagedCluster --ssh-access disabled) as described in Microsoft Documentation and try creating a new node pool. The new node pool comes with SSH enabled even when the entire cluster is updated to disable SSH

Expected behavior

  1. For Issue 1 - Need clarification if node pool reimage is really needed ? As from it looks like running the Disable SSH on Existing cluster command , seem to rotate the nodes and new nodes does not have SSH Listening .
  2. For Issue 2 - On a Cluster that has SSH Disabled on Cluster level , new node pools should automatically inherit SSH Disabled configuration.

Screenshots image Environment (please complete the following information):

  • CLI Version - azure-cli - 2.62.0 and aks-preview - 5.0.0b3
  • Kubernetes version - 1.28.5

+1 Needed feature. Also, there is no option to disable SSH from the portal.

Lavanya-Balaji avatar Jul 16 '24 04:07 Lavanya-Balaji

@miwithrow, @CocoWang-wql would you be able to assist?

+1

klbrg avatar Oct 15 '24 11:10 klbrg

Need able to disable ssh from Terraform

yyvess avatar Dec 03 '24 18:12 yyvess

This issue has been automatically marked as stale because it has not had any activity for 30 days. It will be closed if no further activity occurs within 7 days of this comment. @CocoWang-wql

This issue will now be closed because it hasn't had any activity for 7 days after stale. harinarayanan-muthukumar feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion.