Openstack

Describe in detail how you bring up an instance with a floating IP

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

To launch an instance with a floating IP, you would follow these steps:

  1. Create a Network and Subnet: First, ensure you have a private network and subnet for your instances.
  2. Create a Router: Create a router and connect it to the public (external) network and your private subnet.
  3. Launch an Instance: Launch a new instance, attaching it to your private network. It will receive a private IP address from the subnet.
  4. Allocate a Floating IP: Allocate a new floating IP address from the public network pool to your project.
  5. Associate the Floating IP: Associate the allocated floating IP with the private IP address of your instance. This allows the instance to be accessible from the internet.