Upgrade to Pro — share decks privately, control downloads, hide ads and more …

5分でわかるOpenStack Octavia / OpenStack Octavia in ...

buty4649
August 09, 2017

5分でわかるOpenStack Octavia / OpenStack Octavia in 5min

OpenStack Octaviaについて社内LTで発表した内容です。
Nyahとは弊社のプライベートクラウドのコードネームです。
詳しくは https://speakerdeck.com/tnmt/openstack-migration-case-shift-from-havana-to-mitaka

buty4649

August 09, 2017
Tweet

More Decks by buty4649

Other Decks in Technology

Transcript

  1. -#࡞੒ͷྲྀΕ -PBE#BMBODFS -JTUFOFS 1PPM .FNCFS )FBMUI .POJUPS  -PBE#BMBODFS 

    -JTUFOFS ‎ड͚ޱ  1PPM  .FNCFS ‎όοΫΤϯυ  )FBMUI.POJUPS ‎όοΫΤϯυͷࢮ׆؂ࢹ
  2. ࡞੒ࣄલ४උ $ export OS_AUTH_URL=**** $ export OS_USERNAME=**** $ export OS_PASSWORD=****

    $ export OS_TENANT_NAME=*** $ export OS_REGION_NAME=*** $ export OS_CERT=*** $ export OS_KEY=*** ͍ͭ΋ͷ΍ͭΛࣄલʹઃఆ͢Δ ˞ 04@3&(*0/@/".&04@$&3504@,&:͸؀ڥʹԠͯ͡ઃఆ͢Δ
  3. ࡞੒-PBE#BMBODFS $ yao lbaas lb create \ > --name <໊લ>

    \ > --vip-network-id <LBΛ࡞ΔωοτϫʔΫͷUUID> ˞ WJQOFUXPSLJEWJQTVCOFUJEWJQQPSUJE͸ͲΕ͔ͭΛࢦఆ͢Δ ˞ OBNF͸೚ҙ
  4. ࡞੒-PBE#BMBODFS 4(ͷઃఆ $ yao lbaas lb list | jq -r

    "." -- -- snip -- -- "vip_port": { "id": "c504f6eb-6ed5-42f8-a0e3-74396ed5122b", "name": "test-lb-vip", -- -- snip -- -- -#ͷ7*1ʹ4(Λ͚ͭΔඞཁ͕͋Δ ·ͣ͸7*1ͷQPSUJEΛௐ΂Δ
  5. ࡞੒-PBE#BMBODFS 4(ͷઃఆ $ openstack security group create lbaas $ openstack

    security group rule create \ > --dst-port 80 --protocol tcp --ingress lbaas $ openstack security group rule create \ > --protocol icmp --ingress lbaas $ openstack port set --security-group lbaas <VIPͷPort ID> 7*1ʹ4(Λ͚ͭΔ
  6. ࡞੒-JTUFOFS $ yao lbaas listener create \ > --name <໊લ>

    \ > --loadbalancer-id <LBͷID> \ > --protocol <ड͚෇͚Δϓϩτίϧ> \ > --protocol-port <ड͚෇͚Δϙʔτ൪߸> ˞ OBNF͸೚ҙ ˞ QSPUPDPM͸)551)55145$15&3.*/"5&%@)5514͔Βબ୒
  7. ࡞੒1PPM $ yao lbaas pool create \ > --name <໊લ>

    \ > --lb-algorithm <ϩʔυόϥϯεʹ࢖༻͢ΔΞϧΰϦζϜ> \ > --listener-id <ListenerͷID> \ > --protocol <Memberʹసૹ͢Δࡍʹ࢖༻͢Δϓϩτίϧ> ˞ OBNF͸೚ҙ ˞ QSPUPDPM͸)551)55141309:5$1͔Βબ୒
  8. ࡞੒.FNCFS $ yao lbaas pool member add \ # "add"

    Ͱ͢ > --name <໊લ> \ > --address <όοΫΤϯυͷIPΞυϨε> \ > --protocol-port <ϙʔτ൪߸> \ > --weight <ॏΈΛ0ʙ256Ͱࢦఆɻ਺஋͕ߴ͍΄Ͳ༏ઌ౓͕ߴ͍> \ > <PoolͷID> ˞ OBNF͸೚ҙ
  9. ࡞੒)FBMUI.POJUPS $ yao lbaas healthmonitor create \ > --name <໊લ>

    --pool-id <PoolͷID> \ > --delay <ϝϯόʔͷϙʔϦϯάִؒ> \ > --max-retries <ਖ਼ৗੑΛνΣοΫճ਺Λ1ʙ10Ͱࢦఆ> \ > --timeout <ϞχλʔͷλΠϜΞ΢τ࣌ؒ> \ > --type <ϔϧεϞχλʔʹ࢖͏ϓϩτίϧ> ˞ OBNF͸೚ҙ ˞ UZQF͸)551)55141*/(5$15-4)&--0͔Βબ୒
  10. ࡞੒7*1ʹ'MPBUJOH*1Λ͚ͭΔ $ openstack floating ip set \ > --port <VIPͷPort

    ID> \ > <Floating IPͷIPΞυϨε> -#ͷ7*1ʹ'*1Λ͚ͭΔ