Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1.  
  2.  
  3. 1. If you have deployed the environment with the patch - jump to step 2
  4. Update kuryr.conf with public network.
  5.  
  6. run
  7. neutron net-show -c id -f value public
  8. [stack@ffgfgfg devstack]$ neutron net-show -c id -f value public
  9. neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
  10. e2484051-d541-4655-963a-a76049c4411c
  11.  
  12. add the following entry to kury.conf
  13. [neutron_defaults]
  14. external_svc_net = e2484051-d541-4655-963a-a76049c4411c
  15.  
  16. 2. create service of LoadBalancer type
  17.  
  18.  
  19. kubectl run --image=celebdor/kuryr-demo kuryr-demo555
  20. kubectl scale deploy/kuryr-demo555 --replicas=2
  21. kubectl expose deploy/kuryr-demo555 --port 80 --target-port 8080 --type=LoadBalancer
  22.  
  23.  
  24. 3. Get service external IP
  25. [stack@ffgfgfg devstack]$ kubectl get svc
  26. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
  27. kubernetes ClusterIP 10.0.0.129 <none> 443/TCP 5h
  28. kuryr-demo555 LoadBalancer 10.0.0.155 172.24.4.9 80:32678/TCP 5h
  29.  
  30.  
  31. 4. curl the external/floating ip
  32.  
  33. [stack@ffgfgfg devstack]$ curl 172.24.4.9
  34. kuryr-demo555-df44456d8-sl9gd: HELLO, I AM ALIVE!!!
  35. [stack@ffgfgfg devstack]$ curl 172.24.4.9
  36. kuryr-demo555-df44456d8-sl9gd: HELLO, I AM ALIVE!!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement