Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2017
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. #########################################################################################
  2. Devstack Deployment
  3.  
  4. Use /kuryr-kubernetes/devstack/local.conf.sample with changing OCTAVIA to False
  5.  
  6. "
  7. # OCTAVIA
  8. KURYR_K8S_LBAAS_USE_OCTAVIA=False
  9.  
  10. "
  11.  
  12.  
  13. ###############################################################################################
  14.  
  15. kuryr-k8s GIT :
  16.  
  17. [stack@drtrt kuryr-kubernetes]$ git log
  18.  
  19. commit 5b3b02bb0b1d56ca83a1423d2434812a4b2b2c4d
  20. Author: Yossi Boaron <yossi.boaron.1234@gmail.com>
  21. Date: Sun Aug 27 12:27:18 2017 +0300
  22.  
  23. Add support for service type=LoadBalancer
  24.  
  25. Service loadbalancerIP could be one of the following :
  26. 1. loadbalancerIP allocated from pre-defined pool
  27. k8s service.spec.type = 'LoadBalancer'
  28. 2. loadbalancerIP specified by user
  29. k8s service.spec.type = 'LoadBalancer' and service.spec.loadBalancerIP='x.y.z.t'
  30.  
  31. This commit extend service capability to support '1' and '2'
  32. Implements: blueprint k8s-service-type-loadbalancer
  33.  
  34. Change-Id: I98f56692e143aa7ab14dd9920139819c7026acce
  35.  
  36. commit f8a2021f5d8bebda2d45efe6b40522916a9adb49
  37. Merge: e74debf b268274
  38. Author: Zuul <zuul@review.openstack.org>
  39. Date: Sun Oct 1 10:32:05 2017 +0000
  40.  
  41. Merge "Add Octavia L2 member mode support"
  42.  
  43. commit e74debff62090bb7b6eb415cf97d81fd291e7db1
  44. Author: OpenStack Proposal Bot <openstack-infra@lists.openstack.org>
  45. Date: Wed Sep 27 13:41:21 2017 +0000
  46.  
  47. Updated from global requirements
  48.  
  49. Change-Id: I5c19809d0188200a393506c380b6311751627768
  50.  
  51. commit c4b897262b2017ce3d1dd43665423d34afd6e056
  52. Merge: 637800b 0448547
  53. Author: Jenkins <jenkins@review.openstack.org>
  54. Date: Tue Sep 26 11:10:40 2017 +0000
  55.  
  56. Merge "Fix local.conf.sample once again"
  57.  
  58. commit b268274ee0c5e0092ff8431d133af0e7b69bf7e4
  59. Author: Luis Tomas Bolivar <ltomasbo@redhat.com>
  60. Date: Wed Aug 30 10:07:11 2017 +0000
  61.  
  62. Add Octavia L2 member mode support
  63.  
  64. This patch introduces the modifications needed to support
  65. L2 member mode communication between the loadbalancer and
  66. the pool members (i.e., the pods belonging to the service).
  67.  
  68. =======================================================================================================
  69. # running the test
  70. #create floating IP in public-subnet
  71. [stack@drtrt devstack]$ openstack floating ip create --subnet 068043e0-ec0b-44c8-9e2f-28090315668a 206abbb0-3d34-402e-931e-c59b6020a893
  72.  
  73.  
  74. # allocated IP address was : 172.24.4.4
  75.  
  76. ===========================================================================================================
  77. #Create k8s-service in both pool and user mode
  78.  
  79. kubectl run --image=celebdor/kuryr-demo kuryr-demo901
  80. kubectl scale deploy/kuryr-demo901 --replicas=2
  81. kubectl expose deploy/kuryr-demo901 --port 80 --target-port 8080 --type=LoadBalancer
  82.  
  83.  
  84.  
  85. kubectl run --image=celebdor/kuryr-demo kuryr-demo551
  86. kubectl scale deploy/kuryr-demo551 --replicas=2
  87. kubectl expose deploy/kuryr-demo551 --port 80 --target-port 8080 --type=LoadBalancer --load-balancer-ip=172.24.4.4
  88.  
  89.  
  90.  
  91. [stack@drtrt devstack]$ kubectl get svc
  92. NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
  93. kubernetes 10.0.0.129 <none> 443/TCP 6m
  94. kuryr-demo551 10.0.0.143 172.24.4.4 80:30492/TCP 29s
  95. kuryr-demo901 10.0.0.181 172.24.4.7 80:31951/TCP 44s
  96.  
  97. [stack@drtrt devstack]$ curl 172.24.4.4
  98. kuryr-demo551-2553868779-sb255: HELLO, I AM ALIVE!!!
  99. [stack@drtrt devstack]$ curl 172.24.4.7
  100. kuryr-demo901-2349527529-jwds5: HELLO, I AM ALIVE!!!
  101. [stack@drtrt devstack]$ curl 172.24.4.7
  102. kuryr-demo901-2349527529-ck23x: HELLO, I AM ALIVE!!!
  103. [stack@drtrt devstack]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement