Azure / Azure/kubectl-aks

[RFE] Implement `ssh` command

Open
#24 1 comment 0 reactions 0 assignees View on GitHub
enhancement feature-request
Dominant language
Go
Stars
39
Forks
15
PR merge metrics
No merged PRs in 30d

Description

## Current situation

`kubectl aks` doesn't provide a way to ssh into the nodes (VMSS instances) of an AKS cluster.

## Ideal future situation

Investigate if how we can implement something like this:

```
$ kubectl aks shh --node aks-agentpool-12345678-vmss000000
# shell in the node
```

Of course, the idea solution is to not depend on the Kubernetes control plane but use the Azure SDK to be able to provide this functionality even when the Kubernetes control plane is not working properly, e.g. the API server is down. Note: Check if this kind of functionality is also available for VMSS: https://learn.microsoft.com/en-us/cli/azure/ssh?view=azure-cli-latest#az-ssh-vm

However, if it is not possible, we still have the option of using [`kubectl-node-shell`](https://github.com/kvaps/kubectl-node-shell) and provide this functionality only if Kubernetes is working properly.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing Azure VMSS SSH support with the kubectl-node-shell approach described in the issue. Determine whether the command can work when the Kubernetes control plane is unavailable, then define the supported `kubectl aks ssh --node` behavior and verify it against both possible implementation paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, go, kubernetes
Domain
cli, cloud, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.