Running both rancher-server and hosts on AWS. I am trying to add a new host using the EC2 machine driver. However, it always fails at “waiting for SSH” unless I select “Use Only Private IP”, However, if I do select that then the ec2 instance is created without public IP.
The reason for this I think is that rancher-server is trying to use the public IP address to ssh in to configure the new host. However, on EC2 this is not possible - you can’t access private IPs from within a VPC you have to use the private IPs.
Is there some way of getting around this? Should docker-machine perhaps be using the hostname rather than the IP, as this will resolve correctly?