First, I would like to thank you in advance for your help on this matter. As the title says, our use case is, we currently have multiple pods in k8s, and we would like to access them through ssh by the host name, meaning, based on the host name, traffic should be routed to a specific pod.
I've seen in previous posts that this is not possible since SSH doesn't include a Host header like HTTP/HTTPS/TLS. By reading previous posts, I summarized some of the workarounds purposed by the community:
- SSH Piper, allows to route ssh trafic based on the username provided (GitHub - tg123/sshpiper: The missing reverse proxy for ssh scp)
- Assign a different port to each pod
- Use a bastion/jump host
I've seen there hasn't been any more activity on this subject in the last year, so I would like to validate if there is still no way to route ssh based on the host name, and also if anyone that faced a similar issue could share if any of the previous workarounds worked for you and which was your overall experience with it.
Once again, thanks a lot for your help!