Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. If you have deployed the environment with the patch - jump to step 2
- Update kuryr.conf with public network.
- run
- neutron net-show -c id -f value public
- [stack@ffgfgfg devstack]$ neutron net-show -c id -f value public
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
- e2484051-d541-4655-963a-a76049c4411c
- add the following entry to kury.conf
- [neutron_defaults]
- external_svc_net = e2484051-d541-4655-963a-a76049c4411c
- 2. create service of LoadBalancer type
- kubectl run --image=celebdor/kuryr-demo kuryr-demo555
- kubectl scale deploy/kuryr-demo555 --replicas=2
- kubectl expose deploy/kuryr-demo555 --port 80 --target-port 8080 --type=LoadBalancer
- 3. Get service external IP
- [stack@ffgfgfg devstack]$ kubectl get svc
- NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
- kubernetes ClusterIP 10.0.0.129 <none> 443/TCP 5h
- kuryr-demo555 LoadBalancer 10.0.0.155 172.24.4.9 80:32678/TCP 5h
- 4. curl the external/floating ip
- [stack@ffgfgfg devstack]$ curl 172.24.4.9
- kuryr-demo555-df44456d8-sl9gd: HELLO, I AM ALIVE!!!
- [stack@ffgfgfg devstack]$ curl 172.24.4.9
- kuryr-demo555-df44456d8-sl9gd: HELLO, I AM ALIVE!!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement