Skip to content

Commit

Permalink
Merge pull request #2140 from yuvipanda/ssh-region
Browse files Browse the repository at this point in the history
Document setting 'region' when sshing into EKS node
  • Loading branch information
consideRatio authored Feb 6, 2023
2 parents b531d2d + c9d4673 commit cf7bfc3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/howto/troubleshoot/ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@ issue. This document describes how to do that on various cloud providers.
You can get the entire object's definition with `kubectl get node <node-name> -o yaml`, and
pick out the `alpha.eksctl.io/instance-id` from there. This is of the form `i-<some-string>`.

4. You can now ssh with:
4. Get the *region* of the node. From the output you got in step 3, you can look at the label
`topology.kubernetes.io/region` to get the region. For us, it's often `us-west-2` (as that is
where a lot of scientific data is stored)

5. You can now ssh with:

```bash
aws ssm start-session --target <instance-id>
aws ssm start-session --target <instance-id> --region <region>
```

5. This will put you on the node with the `sh` shell, which is missing a lot of the features we
6. This will put you on the node with the `sh` shell, which is missing a lot of the features we
expect from interactive shells today. You can get on bash with `bash -l`.

6. You will be a user with full `sudo` access, so you can troubleshoot to your heart's content.
7. You will be a user with full `sudo` access, so you can troubleshoot to your heart's content.

0 comments on commit cf7bfc3

Please sign in to comment.