Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: add node names and IPs to /etc/hosts #278

Open
fogs opened this issue May 16, 2019 · 1 comment
Open

Feature request: add node names and IPs to /etc/hosts #278

fogs opened this issue May 16, 2019 · 1 comment

Comments

@fogs
Copy link

fogs commented May 16, 2019

Use Case: as an administrator I want to connect to individual nodes of a cluster to check settings, apply upgrades or debug & fix errors.

Currently I have to find out the IP address of the node to connect via SSH. I would be very convenient to have the node names and their IP addresses in the /etc/hosts so that I can just ssh blue-worker-02

As a workaround I am currently auto-filling the /etc/hosts via

npm install -g json
json -f .hetzner-kube/config.json clusters | json -a nodes | json -ag ip_address name >> /etc/hosts

This is less than ideal as I have to update the file manually. Also removing nodes is not covered.

@fogs
Copy link
Author

fogs commented May 16, 2019

Additionally adding the hostname of the node to the .ssh/known_hosts would help when using parallel-ssh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant