Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. nova boot --image <image-uuid> --flavor 1 server1
  2. nova boot --image <image-uuid> --flavor 1 server2
  3. nova boot --image <image-uuid> --flavor 1 client
  4.  
  5. Get the UUID of the private subnet.
  6.  
  7. neutron subnet-list
  8.  
  9. Create a Loadbalancer:
  10.  
  11. neutron lbaas-loadbalancer-create --name lb1 private-subnet
  12.  
  13. Create a Listener:
  14.  
  15. neutron lbaas-listener-create --loadbalancer lb1 --protocol HTTP --protocol-port 80 --name listener1
  16.  
  17. Create a Pool:
  18.  
  19. neutron lbaas-pool-create --lb-algorithm ROUND_ROBIN --listener listener1 --protocol HTTP --name pool1
  20.  
  21. Create Members (using the IPs of server1 and server2):
  22.  
  23. neutron lbaas-member-create --subnet private-subnet --address <server1-ip> --protocol-port 80 pool1
  24. neutron lbaas-member-create --subnet private-subnet --address <server2-ip> --protocol-port 80 pool1
  25.  
  26. Create a Healthmonitor and associate it with the pool:
  27.  
  28. neutron lbaas-healthmonitor-create --delay 3 --type HTTP --max-retries 3 --timeout 3 --pool pool1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement