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

Keypair's not removed when deleting cluster #597

Open
ulrichSchreiner opened this issue Mar 19, 2018 · 3 comments
Open

Keypair's not removed when deleting cluster #597

ulrichSchreiner opened this issue Mar 19, 2018 · 3 comments

Comments

@ulrichSchreiner
Copy link
Contributor

hi,

i created a cluster named "testk8s" on AWS with my ssh-key "id_rsa". everything fine. then i did a kubicorn delete testk8s and the servers and clusters have gone.

after that i created a new cluster with the same name, but now i changed the publicKeyPath in the state file. when apply'ing everything is created but now kubicorn cannot fetch the configuration, because (at least at aws) there is a keypair named "testk8s" which was not removed when i deleted the old cluster. so the instances are created with my old key (from my first cluster), but kubicorn tries to connect with my new key.

solution: delete all ressources manually from AWS and also delete the Keypair. when creating the new cluster the keypar is recreated with the new keys.

@xmudrii
Copy link
Member

xmudrii commented Mar 19, 2018 via email

@ulrichSchreiner
Copy link
Contributor Author

it would be ok, not to delete the keypair. but it is a mismatch, when kubicorn uses an existing keypair to create the instances but another public-key to connect to the instance.

in such a case kubicorn should read the public-part from the keypair and use this for the connection.

@krisnova
Copy link
Member

krisnova commented Mar 19, 2018

in such a case kubicorn should read the public-part from the keypair and use this for the connection.

Agree with @ulrichSchreiner - anybody care to PR this?

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

No branches or pull requests

3 participants