Keypair onpenstack and privatekeyfile api


I would like use rancher api for create onpenstack. But i don’t understand where i Can put the key file for “privateKeyFile” .
I need use like this : privateKeyFile=~./ssh/Key.file or i need put key.file un rancher server ?

you have to mount the private key from your server volume to rancher container volume by passing -v while launching rancher server container.

Then when you pass the values for openstack API, you have to specify the absolute path of private key inside your rancher server container.

for eg: docker run -itdP -v /home/ubuntu/.ssh/id_rsa.pem:/.ssh/id_rsa.pem rancher/server


Oh yes of course :slight_smile:
Thx for reply

1 Like