infraly / k8s-on-openstack

An opinionated way to deploy a Kubernetes cluster on top of an OpenStack cloud.
Apache License 2.0
112 stars 48 forks source link

Document where to place the private ssh key #30

Closed berendt closed 6 years ago

berendt commented 6 years ago

In the REAMDE: "KEY: name of an existing SSH keypair".

But where do you have to place the private ssh key?

klippo commented 6 years ago

You should add you private key to openstack

berendt commented 6 years ago

@klippo Why should I add the private key to OpenStack? This is not possible. The Ansible playbooks has to know where to find the private key to be able to connect to the instances. Where can I set the path to this private key?

klippo commented 6 years ago

Sorry.. I misread. Your ssh-key usually go in ~/.ssh. But it can be placed anywhere and be specified using ssh -i your_key. before this works you need to upload your public key in openstack.

ctrlaltdel commented 6 years ago

Yes, initial SSH key creation and upload to OpenStack is not really in the scope of these playbooks for now. Here's an example form the CI configuration on how to do it: https://github.com/infraly/k8s-on-openstack/blob/master/.travis.yml#L20.

ivveh commented 6 years ago

You could put your private key anywhere and define it in ~/.ssh/config. IdentifyFile /path/to/private/key