Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2017
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1.  
  2. For the 'User' case, user should first create an external/floating IP:
  3.  
  4. $#openstack floating ip create --subnet <ext-subnet-id> <ext-netowrk-id>
  5. $ openstack floating ip create --subnet 48ddcfec-1b29-411b-be92-8329cc09fc12 3b4eb25e-e103-491f-a640-a6246d588561
  6. +---------------------------+--------------------------------------+
  7. | Field | Value |
  8. +---------------------+--------------------------------------+
  9. | created_at | 2017-10-02T09:22:37Z |
  10. | description | |
  11. | fixed_ip_address | None |
  12. | floating_ip_address | 172.24.4.13 |
  13. | floating_network_id | 3b4eb25e-e103-491f-a640-a6246d588561 |
  14. | id | 1157e2fd-de64-492d-b955-88ea203b4c37 |
  15. | name | 172.24.4.13 |
  16. | port_id | None |
  17. | project_id | 6556471f4f7b40e2bde1fc6e4aba0eef |
  18. | revision_number | 0 |
  19. | router_id | None |
  20. | status | DOWN |
  21. | updated_at | 2017-10-02T09:22:37Z |
  22. +---------------------+--------------------------------------+
  23. and then create k8s service with type=LoadBalancer and load-balancer-ip=<floating_ip> (e.g: 172.24.4.13)
  24.  
  25. In both 'User' and 'Pool' methods, the extrenal IP address could be find in k8s service status information (under loadbalancer/ingress/ip)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement