BOSH 101 winter 2018

18bdc1709419c97238e50f0f28d40d73?s=47 ozzozz
December 02, 2018

BOSH 101 winter 2018

Cloud Foundryで標準の構築手段として使われている、だけじゃないBOSHというツールの基本的な話をします。 BOSH特有の概念も含め、使い方とか内部動作とかを、わかりやすく解説するよう努力した結果のスライドです。
2015年11月に発表した「BOSH 101」https://speakerdeck.com/ozzozz/bosh-101 のアップデート版として2017年9月に発表した「BOSH 101 autumn 2017」https://speakerdeck.com/ozzozz/bosh101-autumn-2017 の、さらなるアップデート版です。
Cloud Foundry Advent Calendar 2018 https://qiita.com/advent-calendar/2018/cloudfoundry の2日目の記事のために、BOSHの最新の状況を踏まえて記載を更新しました。

18bdc1709419c97238e50f0f28d40d73?s=128

ozzozz

December 02, 2018
Tweet

Transcript

  1. #04) XJOUFS ೔ຊ$MPVE'PVOESZάϧʔϓձ௕ ඌ৲݈!LFOPKJSJ 

  2. l #04)ͱ͸ʁ l #04)ͷઃܭཧ೦ l #04)ͷجຊ֓೦ l #04)ͷେ·͔ͳ࢖͍ํ l #04)Ͱ͜͜·ͰͰ͖Δͧू ͓͠ͳ͕͖

  3. •  $MPVE'PVOESZͷϓϩδΣΫτͷͻͱͭ •  Ϋϥ΢υ্ͷ෼ࢄγεςϜͷӡ༻͕ϝΠϯ λʔήοτ •  ϦϦʔε؅ཧˍσϓϩΠˍ؂ࢹπʔϧ •  υΩϡϝϯτ୳ࡧͷى఺͸ IUUQTXXXDMPVEGPVOESZPSHCPTI

    •  #04)͸ຬ̒ࡀ #04)ͱ͸ʁ
  4. #04)͸$MPVE'PVOESZͷϓϩδΣΫτͷͻͱͭ https://github.com/cloudfoundry/bosh ˡ2018೥11݄ݱࡏͷެࣜϩΰɻ

  5. •  $MPVE'PVOESZͷϓϩδΣΫτͷͻͱͭ •  Ϋϥ΢υ্ͷ෼ࢄγεςϜͷӡ༻͕ϝΠϯ λʔήοτ •  ϦϦʔε؅ཧˍσϓϩΠˍ؂ࢹπʔϧ •  υΩϡϝϯτ୳ࡧͷى఺͸ IUUQTXXXDMPVEGPVOESZPSHCPTI

    •  #04)͸ຬ̒ࡀ #04)ͱ͸ʁ
  6. $MPVE'PVOESZͱ#04) https://speakerdeck.com/ozzozz/session-4-b2-1-at-openstack-days-tokyo-2017 ΑΓҾ༻ɺमਖ਼

  7. •  $MPVE'PVOESZͷϓϩδΣΫτͷͻͱͭ •  Ϋϥ΢υ্ͷ෼ࢄγεςϜͷӡ༻͕ϝΠϯ λʔήοτ •  ϦϦʔε؅ཧˍσϓϩΠˍ؂ࢹπʔϧ •  υΩϡϝϯτ୳ࡧͷى఺͸ IUUQTXXXDMPVEGPVOESZPSHCPTI

    •  #04)͸ຬ̒ࡀ #04)ͱ͸ʁ
  8. υΩϡϝϯτ͍Ζ͍Ζʂ ͨͩ͠ӳޠ  https://bosh.io/docs/ https://www.cloudfoundry.org/bosh/ https://ultimateguidetobosh.com/ http://mariash.github.io/learn-bosh/

  9. •  $MPVE'PVOESZͷϓϩδΣΫτͷͻͱͭ •  Ϋϥ΢υ্ͷ෼ࢄγεςϜͷӡ༻͕ϝΠϯ λʔήοτ •  ϦϦʔε؅ཧˍσϓϩΠˍ؂ࢹπʔϧ •  υΩϡϝϯτ୳ࡧͷى఺͸ IUUQTXXXDMPVEGPVOESZPSHCPTI

    •  #04)͸ຬ̒ࡀ #04)ͱ͸ʁ
  10. #04)͸ຬ̒ࡀ https://www.cloudfoundry.org/blog/bosh-turns-five/ (2017೥4݄౤ߘ)ΑΓҾ༻

  11. l #04)ͱ͸ʁ l #04)ͷઃܭཧ೦ l #04)ͷجຊ֓೦ l #04)ͷେ·͔ͳ࢖͍ํ l #04)Ͱ͜͜·ͰͰ͖Δͧू ͓͠ͳ͕͖

  12. Ϟμϯͳ3FMFBTF&OHJOFFSJOHʹ͓͚ΔҎԼͷཁૉΛ࣮ݱ͢Δ •  *EFOUJpBCJMJUZ •  σϓϩΠର৅ͱͳΔιϑτ΢ΣΞͷ֤ߏ੒ཁૉͱɺσϓϩ Π݁Ռͱͯ͠ͷ࣮γεςϜͱͷରԠؔ܎ΛɺҰ؏ͯ͠؅ཧ Ͱ͖Δ •  3FQSPEVDJCJMJUZ • 

    ιʔείʔυΛ͸͡Ίɺಈ࡞؀ڥͱͳΔ04ΠϝʔδɺӬ ଓతσʔλɺ֎෦؀ڥͱͷ࿈ܞ৚݅ΛؚΉߏ੒৘ใ·Ͱɺ ࠶ݱՄೳͳܗͰ౷߹؅ཧͰ͖Δ •  $POTJTUFODZ •  ιϑτ΢ΣΞίϯϙʔωϯτͷ։ൃ͔ΒɺσϓϩΠɺߋ৽ɺ ߏ੒มߋʹࢸΔ·Ͱͷɺ೔ৗతͳϫʔΫϑϩʔͷ࿮૊ΈΛ ఏڙ͢Δ •  "HJMJUZ •  ιϑτ΢ΣΞϦϦʔεͷ࡞੒ࣗಈԽ΍γϯϓϧͳίϚϯυ ʹΑΔෳࡶͳγεςϜͷߋ৽ͷ࣮ݱʹΑΓɺ$*$%ͳͲ ೔ʑਐԽ͢ΔϕετϓϥΫςΟεͱͷ౷߹ΛՄೳʹ͢Δ ࢀߟ: https://bosh.io/docs/problems/ #04)ͷઃܭཧ೦
  13. l #04)ͱ͸ʁ l #04)ͷઃܭཧ೦ l #04)ͷجຊ֓೦ l #04)ͷେ·͔ͳ࢖͍ํ l #04)Ͱ͜͜·ͰͰ͖Δͧू ͓͠ͳ͕͖

  14. #04)ͷجຊ֓೦  #04)ʹ༩͑Δ΋ͷ TUFNDFMM SFMFBTF Ͳͷ༻్ͷ7.ʹ΋Խ͚Δ 7.Πϝʔδ TUFNDFMMͰ࡞੒͞Εͨ 7.ͳΒͲ͜Ͱ΋ಈ͘ "84$1*

    0QFO4UBDL$1* W4QIFSF$1* ෼ࢄγεςϜͷߏ੒৘ใ Λͻͱͭͷ:".-Ͱ #04)Ͱ؅ཧ ͞ΕΔ΂͖ ͋ΒΏΔઃఆ (PPHMF$1* ɾɾɾ ˞$1*$MPVE1SPWJEFS*OUFSGBDF EFQMPZNFOU NBOJGFTU DPOpH
  15. •  04ͷϕʔεΠϝʔδʹɺ࠷খݶͷҰൠతͳϢʔςΟ ϦςΟύοέʔδ DVSM PQFOTTI CVJMEFTTFOUJBMT  DMPVEHVFTUVUJMT ֤छϥΠϒϥϦͳͲ ɺ͍͔ͭ͘

    ͷγεςϜઃఆϑΝΠϧɺ͞Βʹ#04)BHFOUͷό ΠφϦΛՃ͑ͯ࡞੒ͨ͠7.Πϝʔδͷ͜ͱ •  04ͷछྨ -JOVY͸σΟετϦ ͝ͱɺ͔ͭɺ*BB4ͷ छྨ͝ͱʹTUFNDFMMΛ༻ҙ •  7.͝ͱʹඞཁͳઃఆ /8पΓɺσΟεΫपΓɺೝ ূ৘ใͳͲ ͸શͯഉআ͠ɺ*BB4ܦ༝ NFUBEBUB TFSWJDFɺ·ͨ͸DPOpHESJWF ΍#04)BHFOUܦ༝ 3FHJTUSZͷࢀরɺ%JSFDUPSൃͷ/"54ϝοηʔδ Ͱ ஫ೖ͞ΕΔ৘ใͷΈʹج͍ͮͯ7.͕͋ΒΏΔ໾ׂΛ ՌͨͤΔΑ͏ʹઃܭ •  ηΩϡϦςΟ੬ऑੑͳͲʹΑΓஞ࣍Ξοϓσʔτ͞ ΕΔ͜ͱΛ૝ఆ͠ɺόʔδϣϯ൪߸Λ͚ͭͯ؅ཧ #04)ʹ͓͚ΔTUFNDFMM
  16. ެࣜTUFNDFMM͸CPTIJPTUFNDFMMTʹ

  17. •  TUFNDFMMΛ༻͍ͯ࡞੒͞Εͨ͋ΒΏΔ7.্ͰͷϏϧυ ΍σϓϩΠʹ͓͍ͯ࠶ར༻ՄೳͳܗͰ·ͱΊΒΕͨɺ ओʹҎԼͷϑΝΠϧͷू߹ମ KPCTσΟϨΫτϦ഑ԼKPCUFNQMBUFΛߏ੒ •  ઃఆ߲໨ͷఆٛ •  ઃఆϑΝΠϧɺ͋Δ͍͸ͦͷςϯϓϨʔτ • 

    ىಈɾఀࢭεΫϦϓτɺ͋Δ͍͸ͦͷςϯϓϨʔτ •  NPOJUͷઃఆ •  ಺แ͢ΔQBDLBHFͷϦετ QBDLBHFT TSD DPOpHσΟϨΫτϦ഑ԼQBDLBHFΛߏ੒ •  ϏϧυεΫϦϓτ •  ιʔείʔυɺ͋Δ͍͸ͦͷ͋Γ͔ "844ͳͲ  •  όΠφϦ෦ࡐ KBSϑΝΠϧͳͲ ɺ͋Δ͍͸ͦͷ͋Γ͔ •  ஞ࣍Ξοϓσʔτ͞ΕΔ͜ͱΛ૝ఆ͠όʔδϣϯ൪߸Λ͚ͭͯ ؅ཧ #04)ʹ͓͚ΔSFMFBTF
  18. CPTIJPSFMFBTFTʹ͸ίϛϡχςΟ൛ͷSFMFBTF͕͍ͬͺ͍ ࣌఺Ͱ ݸʂ

  19. ओʹҎԼʹࣔ͢σϓϩΠ৚݅ઃఆ߲໨Λ ·ͱΊͯهड़ͨ͠ɺͻͱͭͷ:".-ϑΝΠϧ OBNF෼ࢄγεςϜ EFQMPZNFOU ͷ໊শ SFMFBTFTσϓϩΠର৅SFMFBTFʲෳ਺ࢦఆՄʳ TUFNDFMMT࢖༻͢ΔTUFNDFMMʲෳ਺ࢦఆՄʳ VQEBUF σϓϩΠ࣌ͷಉ࣌ฒߦॲཧ৚݅ ฒߦՄ൱ɺಉ࣌σϓϩΠ

    7.਺ ɺॲཧ଴ͪλΠϜΞ΢τ஋ɺ7.࠶࡞੒λΠϛϯά JOTUBODF@HSPVQT ֤7.ʹؔ͠ɺ઀ଓ͞ΕΔӬଓతσΟεΫɺσϓϩΠ͞Ε ΔKPCɺ౰֘7.ಛ༗ͷઃఆύϥϝʔλɺ7.਺ QSPQFSUJFTશ7.ʹΘͨͬͯڞ௨ͳઃఆύϥϝʔλ #04)ʹ͓͚ΔEFQMPZNFOUNBOJGFTU ࢀߟ: https://bosh.io/docs/manifest-v2/
  20. EFQMPZNFOUNBOJGFTUͷྫ •  "QBDIF;PP,FFQFS https://bosh.io/docs/deployment-basics/ ʹαϯ ϓϧͱͯ͠ܝࡌ •  7.ͷΫϥελΛͭͷ";ʹ·͕ͨͬͯσϓϩΠ •  $PODPVSTF$*

    https://github.com/concourse/concourse-bosh- deployment/blob/master/cluster/concourse.yml •  1PTUHSF42-αʔόYɺNBTUFSϊʔυYɺ XPSLFSϊʔυYͷ7.෼ࢄߏ੒ΛσϓϩΠ •  $MPVE'PVOESZ "QQMJDBUJPO3VOUJNF  https://github.com/cloudfoundry/cf-deployment/ blob/master/cf-deployment.yml •  $'ίϛϡχςΟͱͯ͠࠷৽ͷΠέͯΔߏ੒ •  ʲةݥʳ";ʹ·͕ͨͬͯܭ7.ΛσϓϩΠɻ ͦͷ·Μ·ैྔ੍*BB4্Ͱ࢖͏ͱഇ՝ۚϞʔυʹ
  21. #04)ʹ͓͍ͯ؅ཧ͞ΕΔ΂͖͋ΒΏΔઃఆΛλΠϓผʹه ड़ͨ͠:".-ϑΝΠϧɻ ͜ͷ͏ͪɺ#04)ࣗମͷಈ࡞ʹؔ܎͢Δͷ͸ҎԼͷλΠϓ %JSFDUPS$MPVE$POpH σϓϩΠઌͷ*BB4ʹґଘ͢Δઃఆ %JSFDUPS3VOUJNF$POpH ͢΂ͯͷEFQMPZNFOUʹڞ௨ʹద༻͞ΕΔ΂͖ઃఆͷ ͏ͪɺσϓϩΠઌ*BB4ʹґଘ͠ͳ͍΋ͷ $1*$POpH ͭͷ#04)͔Βෳ਺ͷ*BB4ɾςφϯτɾϦʔδϣϯ

    Λૢ࡞͍ͨ͠৔߹ʹ͓͚Δ֤ʑͷઃఆ  #04)ʹ͓͚ΔDPOpH ࢀߟ: https://bosh.io/docs/configs/
  22. EFQMPZNFOUT #04)ͷجຊ֓೦  #04)͕଄Δ΋ͷ EFQMPZNFOUT JOTUBODFHSPVQ JOTUBODFHSPVQ ɾɾɾ JOTUBODF QFSTJTUFOU

    EJTL KPC KPC QBDLBHF QBDLBHF JOTUBODF JOTUBODF KPC KPC QBDLBHF QBDLBHF DPNQJMFESFMFBTF DPNQJMFESFMFBTF DPNQJMFE  QBDLBHF DPNQJMFE  QBDLBHF DPNQJMFE  QBDLBHF /8 CPTI BHFOU CPTI BHFOU
  23. DPNQJMFESFMFBTF SFMFBTFʹؚ·ΕΔQBDLBHFΛϏϧυ͠ɺJOTUBODFʹͦͷ·· ΠϯετʔϧՄೳͱͨ͠DPNQJMFEQBDLBHFΛ·ͱΊͨ΋ͷ EFQMPZNFOU EFQMPZNFOUNBOJGFTUʹج͍ͮͯ#04)͔ΒσϓϩΠ͞Ε ؅ཧର৅ͱͳΔ෼ࢄγεςϜɻ ̍ͭPSෳ਺ͷJOTUBODFHSPVQ͔Βߏ੒͞ΕΔ JOTUBODFHSPVQ ಉҰͷߏ੒ΛͱΔJOTUBODF 㲈7.

    ͷू߹ɻ εέʔϧ JOTUBODFͷݸ਺ͱେ͖͞ Λௐ੔Մೳ QFSTJTUFOUEJTL JOTUBODFʹΞλον͞ΕӬଓతσʔλΛ֨ೲ͢ΔͨΊͷԾ૝ σΟεΫ ϒϩοΫετϨʔδ ɻ "84&#4ɺ0QFO4UBDL$JOEFS7PMVNFɺ($1ӬଓσΟεΫ ͳͲɻ JOTUBODFͱ͸ಠཱͯ͠؅ཧ͞ΕΔ #04)ͷجຊ֓೦  #04)͕଄Δ΋ͷ
  24. #04)͕଄ΔJOTUBODF 7. ͷத਎ JOTUBODF KPC KPC QBDLBHF QBDLBHF CPTI BHFOU

    var bin boot / backups tmp vcap bosh data store ... ... instance monit master/7d1753b7-c17f-481f-9e48-aada505dbf06:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT vda 253:0 0 20G 0 disk !"vda1 253:1 0 2.9G 0 part / !"vda2 253:2 0 2G 0 part [SWAP] #"vda3 253:3 0 15.2G 0 part /var/vcap/data vdb 253:16 0 98G 0 disk #"vdb1 253:17 0 98G 0 part /var/vcap/store CPTIBHFOUؔ࿈ 7.ͷϝλσʔλ KPC༝དྷͷNPOJUઃఆ jobs packages sys log QFSTJTUFOU EJTL FQIFNFSBMEJTLɺ΋͘͠ ͸SPPUσΟεΫͷۭ͖ ύʔςΟγϣϯΛNPVOU ઃఆϑΝΠϧɺ ىಈఀࢭεΫϦϓτ౳ TUFNDFMMͷ σΟϨΫτϦπϦʔ ͦͷ·· ֤KPCʹͯ࢖༻͞ΕΔ DPNQJMFEQBDLBHF ֤ίϯϙʔωϯτ͕ ग़ྗ͢Δϩά QFSTJTUFOUEJTLΛNPVOU #04)ʹΑΔ؅ཧର৅
  25. l #04)ͱ͸ʁ l #04)ͷઃܭཧ೦ l #04)ͷجຊ֓೦ l #04)ͷେ·͔ͳ࢖͍ํ l #04)Ͱ͜͜·ͰͰ͖Δͧू ͓͠ͳ͕͖

  26.   *BB4Λ४උ •  ςφϯτɺ"1*ΞΫηεΩʔɺ44)ݤϖΞɺηΩϡϦςΟάϧʔϓɺ 71$ 1SJWBUF/8ɺαϒωοτɺԾ૝ϧʔλ ͳͲ   #04)$-*Λ४උ  

    *BB4্ʹ#04)ࣗମΛσϓϩΠ "  #04)ࣗମͷEFQMPZNFOUNBOJGFTUͷݕ౼ #  σϓϩΠ   #04)Λ࢖ͬͯ*BB4্ʹԿΒ͔ͷ෼ࢄγεςϜΛ σϓϩΠ "  #04)$-*͔ΒͷϩάΠϯ #  σϓϩΠର৅γεςϜͷEFQMPZNFOUNBOJGFTUͷ࡞੒ $  TUFNDFMMͷొ࿥ #04)Λհͯ͠*BB4΁  %  σϓϩΠ 7.ɾϘϦϡʔϜͷ࡞੒ˠQBDLBHFͷϏϧυ ˠ֤7.΁ͷΠϯετʔϧˠ֤7.্Ͱͷϓϩηεىಈ    σϓϩΠ͞Εͨ෼ࢄγεςϜͷಈ࡞֬ೝ •  ಈ࡞֬ೝςετ ͋Ε͹ Λ#04)͔Βىಈ͢Δ͜ͱ͕Մೳ #04)ͷ࢖͍ํͷେ·͔ͳྲྀΕ
  27. ͍͢·ͤΜɻֆͰࡉ͔͘આ໌͠·͢ ɹɹɹɹɹɹɹɹʙ0QFO4UBDLΛϞνʔϑʹʙ http://o.aolcdn.com/hss/storage/midas/21a8abf896b2b74d8518f7eee3d42b6/202884452/Bob_Ross.jpg

  28. ̍ɽ*BB4Λ४උ  B ϓϩδΣΫτΛ̍ͭ༻ҙ QSPKFDU ˞,FZTUPOFWͷ৔߹͸ϓϩδΣΫτɺ,FZTUPOFWͷ৔߹͸ςφϯτ ࢀߟ: https://bosh.io/docs/init-openstack/

  29. QSPKFDU 73 pQ pQ TFDHSQ 7/8 (6*$-* ̍ɽ*BB4Λ४උ  C

    ϓϩδΣΫτͷதʹ7/8 73 TFDHSPVQ 'MPBUJOH*1Λ༻ҙ ʢ44)ݤϖΞొ࿥΋ʣ 5FSSBGPSNΛ׆༻͠؆୯Խ͢Δखஈ΋ଘࡏɻ https://github.com/cloudfoundry-incubator/bosh-openstack- environment-templates/tree/master/bosh-init-tf Λࢀর
  30. ̎ɽ#04)$-*Λ४උ https://bosh.io/docs/cli-v2-install/ Λࢀরɻ $-*ࣗମ͸(PݴޠͰ࣮૷͞ΕόΠφϦͰ഑෍͞Ε͍ͯ ΔͨΊɺͦͷ··1"5)ͷ௨ͬͨσΟϨΫτϦʹ഑ஔ ͯ͠DINPEͰ࣮ߦՄೳϑϥάΛཱͯΕ͹0, ʲ஫ҙʳ *OTUBMM04TQFDJpFEEFQFOEFODJFTΛ๨Εͣʹʂ #04)0QFO4UBDL$1*͸3VCZͰ࣮૷͞Ε͓ͯΓɺ ґଘ͢Δ3VCZHFNTͷϏϧυ΋ඞཁͰ͋ΔͨΊɺ

    #04)$-*Ҏ֎ʹ3VCZϥϯλΠϜͱϏϧυ༻֤ύο έʔδ΋ซͤͯΠϯετʔϧ͢Δඞཁ͕͋Γ·͢
  31. •  https://github.com/cloudfoundry/bosh-deployment Λ׆༻͠ɺ:".-ΛΠν͔Βॻ͜͏ͱ͠ͳ͍ •  bosh.ymlΛϕʔεͱ͠ɺ࢖͍͍ͨ$1*΍ػೳʹج͍ͮͯPQT pMFΛબΜͰύονΛ౰ͯɺ͞Βʹ؀ڥґଘͷύϥϝʔλΛ஫ ೖͯ͠EFQMPZNFOUNBOJGFTUΛ׬੒ͤ͞ΔΠϝʔδ •  PQTpMFͷબͼํͷྫ • 

    0QFO4UBDL$1*Λར༻ˠopenstack/cpi.yml •  #04)ͷϩάΛ֎෦TZTMPHαʔό΁సૹˠsyslog.yml •  ஫ೖ͢΂͖؀ڥґଘύϥϝʔλ •  #04)$-*Λ༻͍ͯɺྫ͑͹ҎԼͷΑ͏ʹͯ͠ൃݟՄೳ •  ஫ೖ͢Δύϥϝʔλ͸vars.ymlϑΝΠϧͱͯ͠·ͱΊͯ ͓͘ͱศར "ɽ#04)ࣗମͷEFQMPZNFOUNBOJGFTUͷݕ౼ $ bosh interpolate bosh.yml –o openstack/cpi.yml –o syslog.yml --vars-store=vars-store.yml --var-errs ࢀߟ: https://bosh.io/docs/cli-int/
  32. #ɽCPTIDSFBUFFOWίϚϯυͰ#04)ΛσϓϩΠ QSPKFDU 73 pQ pQ TFDHSQ 7/8 #04)$-* $ bosh

    create-env bosh.yml –o openstack/cpi.yml ... --vars-store=vars-store.yml --vars-file=vars.yml EFQMPZNFOU NBOJGFTU
  33. #ɽCPTIDSFBUFFOWίϚϯυͰ#04)ΛσϓϩΠ ɹ B $1*ͷϏϧυ QSPKFDU 73 pQ pQ TFDHSQ 7/8

    #04)$-* $1* $1*$MPVE1SPWJEFS*OUFSGBDF EFQMPZNFOU NBOJGFTU
  34. #ɽCPTIDSFBUFFOWίϚϯυͰ#04)ΛσϓϩΠ ɹ C TUFNDFMM 7.Πϝʔδ ͷΞοϓϩʔυ QSPKFDU 73 pQ pQ

    TFDHSQ 7/8 #04)$-* $1* TUFN DFMM
  35. #ɽCPTIDSFBUFFOWίϚϯυͰ#04)ΛσϓϩΠ ɹ D TUFNDFMMΛ࢖ͬͯ#04)7.Λ࡞੒ɾىಈ QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-*

    $1* TUFN DFMM #04)7. pQ
  36. #ɽCPTIDSFBUFFOWίϚϯυͰ#04)ΛσϓϩΠ ɹ E #04)֤ίϯϙʔωϯτͷϏϧυɾىಈ QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-*

    TUFN DFMM #04)7. pQ #04) DPNQPOFOUT
  37. #04)ͷ಺෦ߏ଄ https://bosh.io/docs/bosh-components/ ΑΓ #04)7.಺ʹ σϓϩΠ %BUB 3%# ɺ CMPCTUPSF 8FC%"7

    ͸֎ग़͠΋Մೳ 
  38. #04)֤ίϯϙʔωϯτͷ໾ׂ %BUB QPTUHSFTRMNZTRM #04)$-*͔Βొ࿥͞ΕͨσϓϩΠޙͷʮ͋Δ΂͖ ࢟ʯͳͲͷ؅ཧσʔλΛอ࣋ /"54%JSFDUPS)FBMUI.POJUPSʙBHFOUؒͷQVCTVCܕϝοηʔδϯάόε %JSFDUPS#04)"1*Λఏڙ͠ɺ7.΍σϓϩΠର৅ιϑτ΢ΣΞͷ ϥΠϑαΠΫϧͷ؅ཧ΍ΦʔέετϨʔγϣϯΛ୲͏ $1**BB4ͷछྨʹΑͬͯҟͳΔॲཧ ओʹ7.΍Ծ૝σΟεΫͳͲͷ

    ϥΠϑαΠΫϧૢ࡞ͷͨΊͷ*BB4"1*ݺͼग़͠ Λ୲͏ 3FHJTUSZ7.ىಈ࣌ɾߋ৽࣌ʹBHFOUʹΑͬͯ7.ʹઃఆ͢Δ*1ΞυϨε΍ σΟεΫϚ΢ϯτϙΠϯτͳͲΛอ࣋ #MPCTUPSFιʔείʔυܗࣜͱϏϧυࡁΈܗࣜͷSFMFBTFΛอ࣋ )FBMUI.POJUPSBHFOU͔Β/"54Λհͯ͠ૹΒΕΔ7.ͷঢ়ଶ΍ΠϕϯτΛ؂ࢹɺ ҟৗ࣌ʹΞϥʔτૹग़΍7.࠶࡞੒ BHFOU#04)ʹΑΓ࡞੒͞Εͨ7.ʹৗற͠ɺ%JSFDUPS͔Β/"54Λհͯ͠ ༩͑ΒΕΔࢦࣔʹैͬͯ7.ࣗମͷ֤छઃఆ΍#MPCTUPSF͔Βऔಘͨ͠ ιϑτ΢ΣΞύοέʔδͷϏϧυ΍࣮ߦΛߦ͏ͱͱ΋ʹɺ /"54Λհͯ͠7.ͷঢ়ଶ΍ΠϕϯτΛૹग़ #04)$-*#04)Ϣʔβ ෼ࢄγεςϜӡ༻ऀ ͕࢖༻͠ɺ#04)"1*΁ͷ ֤छΞΫηε΍ɺSFMFBTF࡞੒ɺEFQMPZNFOUNBOJGFTU݁߹ͳͲΛ୲͏
  39. ࿩͕ֆ͔Β୤ઢ͠·ͨ͠ɻ͝ΊΜͳ͍͞Ͷ http://o.aolcdn.com/hss/storage/midas/21a8abf896b2b74d8518f7eee3d42b6/202884452/Bob_Ross.jpg

  40.   *BB4Λ४උ •  ςφϯτɺ"1*ΞΫηεΩʔɺ44)ݤϖΞɺηΩϡϦςΟάϧʔϓɺ 71$ 1SJWBUF/8ɺαϒωοτɺԾ૝ϧʔλ ͳͲ   #04)$-*Λ४උ  

    *BB4্ʹ#04)ࣗମΛσϓϩΠ "  EFQMPZNFOUNBOJGFTUͷ࡞੒ #  σϓϩΠ   #04)Λ࢖ͬͯ*BB4্ʹԿΒ͔ͷ෼ࢄγεςϜΛ σϓϩΠ "  #04)$-*͔ΒͷϩάΠϯ #  σϓϩΠର৅γεςϜͷEFQMPZNFOUNBOJGFTUͷ࡞੒ $  TUFNDFMMͷొ࿥ #04)Λհͯ͠*BB4΁  %  σϓϩΠ 7.ɾϘϦϡʔϜͷ࡞੒ˠQBDLBHFͷϏϧυ ˠ֤7.΁ͷΠϯετʔϧˠ֤7.্Ͱͷϓϩηεىಈ    σϓϩΠ͞Εͨ෼ࢄγεςϜͷಈ࡞֬ೝ •  #04)͔Βಈ࡞֬ೝςετ ͋Ε͹ Λݺͼग़͢͜ͱ͕Մೳ #04)ͷ࢖͍ํͷେ·͔ͳྲྀΕ ଓ͖͸͔͜͜Β
  41. "ɽ#04)$-*͔ΒͷϩάΠϯ QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* #04)7. pQ %JSFDUPS

    $ bosh alias-env bosh -e ʲ#04)7.ͷ*1ΞυϨεʳ --ca-cert <(bosh int vars-store.yml --path /director_ssl/ca) $ bosh interpolate vars-store --path /admin_password $ bosh –e bosh login ˠʢID͸ adminɺύεϫʔυ͸̍ͭલίϚϯυͷ݁Ռʹදࣔ͞Εͨจࣈྻʣ ˞#04)$-*͔Β%JSFDUPS΁ͷ"1*઀ଓ͸)5514Ͱ͋Δ͕ɺbosh create-envίϚϯυ࣮ߦ࣌ʹࣗಈੜ ੒͞Εͨ$"ূ໌ॻΛ࢖༻͢Δ ˞#04)$-*͔ΒͷϩάΠϯ࣌ͷύεϫʔυ΋bosh create-envίϚϯυ࣮ߦ࣌ʹࣗಈੜ੒͞Εͨ΋ͷ Λ࢖༻͢Δ
  42. #ɽEFQMPZNFOUNBOJGFTUͷ࡞੒ QSPKFDU 73 pQ TFDHSQ 7/8 TUFN DFMM #04)7. pQ

    EFQMPZNFOU NBOJGFTU #04)ͷEFQMPZNFOUNBOJGFTUΛbosh-deploymentϦ ϙδτϦʹཔͬͨΑ͏ʹɺcf-deploymentϦϙδτϦ΍ concourse-bosh-deploymentϦϙδτϦͳͲͰެ։͞ Ε͍ͯΔϕʔεͷ:".-ϑΝΠϧ΍PQTϑΝΠϧΛ׆༻͢ Δͷ͕ࠓͲ͖ͷ΍Γํ
  43. $ɽTUFNDFMM 7.Πϝʔδ ͷ*BB4΁ͷొ࿥ QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN

    DFMM #04)7. pQ %JSFDUPS $1* $ bosh –e bosh upload-stemcell ...
  44. 0QFO4UBDLͷ৔߹   "84ͷ৔߹   CPTIMJUFͷ৔߹ #04)΁ͷTUFNDFMMͷొ࿥͸جຊ͜ΕͰ0, $ bosh

    -e bosh upload-stemcell https://bosh.io/d/ stemcells/bosh-openstack-kvm-ubuntu-xenial-go_agent $ bosh -e bosh upload-stemcell https://bosh.io/d/ stemcells/bosh-aws-xen-hvm-ubuntu-xenial-go_agent ˞͍ͣΕ΋ͦͷ࣌఺ͷ࠷৽൛͕CPTIJP͔Βλʔήοτͷ#04)ʹ௚઀ొ࿥͞Ε·͢ $ bosh -e bosh upload-stemcell https://bosh.io/d/ stemcells/bosh-warden-boshlite-ubuntu-xenial- go_agent
  45. #04)ʹొ࿥ࡁͷTUFNDFMMΛࢀর $ bosh -e bosh stemcells Using environment '192.168.13.69' as

    client 'admin' Name Version OS CPI CID bosh-openstack-kvm-ubuntu-xenial-go_agent 170.9 ubuntu- xenial - 7dd07962-068d-4720-8ac2-9ae39ee0e915 (*) Currently deployed 1 stemcells Succeeded
  46. %ɽσϓϩΠ QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7.

    pQ $ bosh -e bosh deploy ...
  47. %ɽσϓϩΠ ɹ B SFMFBTFͷΞοϓϩʔυ QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-*

    TUFN DFMM #04)7. pQ %JSFDUPS #MPCTUPSF Ξοϓϩʔυ͞Εͨ SFMFBTF಺ͷQBDLBHF͸ ιʔείʔυܗࣜ ˞EFQMPZNFOUNBOJGFTUʹσϓϩΠର৅SFMFBTFͷϦϞʔτ63-ͱ4)"͕هೖ͞Ε͍ͯͳ͍৔߹͸ɺ ɹ༧Ίbosh upload-releaseίϚϯυʹΑΓखಈͰΞοϓϩʔυ͞Ε͍ͯΔඞཁ͕͋Δ
  48. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

    %JSFDUPS %ɽσϓϩΠ ɹ C EFQMPZNFOUNBOJGFTUͷΞοϓϩʔυ EFQMPZNFOU NBOJGFTU
  49. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

    %JSFDUPS %ɽσϓϩΠ ɹ D QBDLBHFϏϧυ༻7.ͷ࡞੒ EFQMPZNFOU NBOJGFTU $1* Ϗϧυ༻ 7. Ϗϧυ༻ 7.
  50. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

    %JSFDUPS %ɽσϓϩΠ ɹ E QBDLBHF ιʔείʔυܗࣜ ͷϏϧυ EFQMPZNFOU NBOJGFTU Ϗϧυ༻ 7. Ϗϧυ༻ 7. BHFOU #MPCTUPSF Ϗϧυॲཧ
  51. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

    %JSFDUPS %ɽσϓϩΠ ɹ F DPNQJMFEQBDLBHFͷΞοϓϩʔυ EFQMPZNFOU NBOJGFTU Ϗϧυ༻ 7. Ϗϧυ༻ 7. BHFOU #MPCTUPSF Ϗϧυॲཧ
  52. QSPKFDU 73 TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ %JSFDUPS

    %ɽσϓϩΠ ɹ G σϓϩΠઌ7.ɾϘϦϡʔϜͷ࡞੒ɾىಈ EFQMPZNFOU NBOJGFTU $1* 7. pQ pQ΍ϘϦϡʔϜ ͸EFQMPZNFOU NBOJGFTUͰࢦఆ ͞Εͨ7.ͷΈʹ ෇༩
  53. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

    %JSFDUPS %ɽσϓϩΠ ɹ H DPNQJMFEQBDLBHFͷΠϯετʔϧ EFQMPZNFOU NBOJGFTU Ϗϧυ༻ 7. 7. BHFOU #MPCTUPSF Πϯετʔϧ
  54. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

    %JSFDUPS %ɽσϓϩΠ ɹ I 7.্ͷϓϩηεͷNPOJUΛհͨ͠ىಈ EFQMPZNFOU NBOJGFTU Ϗϧυ༻ 7. 7. BHFOU NPOJU ϓϩηε ϓϩηε
  55. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

    %JSFDUPS %ɽσϓϩΠ ɹ J BHFOU͔Βͷ7.ͷϓϩηεىಈ׬ྃ௨஌ EFQMPZNFOU NBOJGFTU Ϗϧυ༻ 7. 7. BHFOU NPOJU ϓϩηε ϓϩηε
  56. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

    %JSFDUPS %ɽσϓϩΠ ɹ K BHFOU͔Βͷ7.ঢ়ଶͷఆظૹग़ EFQMPZNFOU NBOJGFTU Ϗϧυ༻ 7. 7. BHFOU NPOJU ϓϩηε ϓϩηε )FBMUI .POJUPS
  57. #04)ͰσϓϩΠࡁͷ෼ࢄγεςϜΛࢀর $ bosh -e bosh deployments Using environment '192.168.13.69' as

    client 'admin' Name Release(s) Stemcell(s) Team(s) concourse concourse/4.2.1 bosh-openstack-kvm- ubuntu-xenial-go_agent/170.9 - garden-runc/1.16.3 postgres/30 1 deployments Succeeded
  58. #04)ͰσϓϩΠࡁͷ7.ͷҰཡΛࢀর $ bosh -e bosh vms Using environment '192.168.13.69' as

    client 'admin' Task 12. Done Deployment 'concourse' Instance Process State AZ IPs VM CID VM Type Active db/44719a6c-a057-4bae-8c01-d63558a12b9a running z1 10.0.0.201 70f90767-06a8-4fc1-a811-422d0985c619 small true web/d2a79ed5-af8c-4028-ad42-c192c0777ee9 running z1 10.0.0.203 c089e702-1537-43d0-8455-48801e3b8128 small true worker/674d3455-b668-4e8d-ab8b-985d101a8799 running z1 10.0.0.202 ac0a3957-86ba-4277-842e-63d68813c688 small true 3 vms Succeeded
  59. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

    %JSFDUPS ̑ɽσϓϩΠ͞Εͨ෼ࢄγεςϜͷಈ࡞֬ೝ EFQMPZNFOU NBOJGFTU Ϗϧυ༻ 7. 7. ϓϩηε ϓϩηε ςετ༻ 7. BHFOU $1* ಈ֬ςετ $ bosh -e bosh run-errand ... TNPLFUFTUɺ BDDFQUBODFUFTU ͳͲ
  60. Ͷʁ؆୯Ͱ͠ΐʁ http://o.aolcdn.com/hss/storage/midas/21a8abf896b2b74d8518f7eee3d42b6/202884452/Bob_Ross.jpg

  61. l #04)ͱ͸ʁ l #04)ͷઃܭཧ೦ l #04)ͷجຊ֓೦ l #04)ͷେ·͔ͳ࢖͍ํ l #04)Ͱ͜͜·ͰͰ͖Δͧू ͓͠ͳ͕͖

  62. Ø  #04)༻%#ʹɺ#04)૊ΈࠐΈͷ1PTUHSF42-͚ͩ Ͱ͸ͳ͘ɺ֎෦ͷ.Z42-αʔόͱ͔΋࢖͑Δ Ø  #04)༻CMPCTUPSFʹɺ#04)૊ΈࠐΈͷ8FC%"7 ͚ͩͰ͸ͳ͘ɺ"844 "1*ޓ׵੡඼ؚΉ ΍($4ͱ ͍ͬͨ֎෦ΦϒδΣΫτετϨʔδ΋࢖͑Δ Ø 

    #04)͔ΒσϓϩΠ͠؂ࢹ͍ͯ͠Δ7.ͷނোΛ֎෦ ʹ௨஌ͨ͠Γɺ7.Λࣗಈతʹ࠶࡞੒ͨ͠ΓͰ͖Δ Ø  #04)͔ΒσϓϩΠ͠؂ࢹ͍ͯ͠Δ7.ͷجຊతͳϝ τϦΫεΛऩू͠ɺ֎෦Ͱอ؅ɾ෼ੳͰ͖Δ Ø  QFSTJTUFOUEJTLͷεφοϓγϣοτΛखಈఆظࣗ ಈߋ৽σϓϩΠ࣌ࣗಈͰऔಘͰ͖Δ Ø  #04)͔ΒσϓϩΠͨ͠7.ͷ*1ΞυϨεΛ໊લղܾ Ͱ͖Δ಺෦%/4ͱ౷߹Ͱ͖Δ Ø  EFQMPZNFOUNBOJGFTUʹهड़͢Δ΂͖ύεϫʔυ΍ ൿີݤͳͲΛผ؅ཧͨ͠Γࣗಈੜ੒ͨ͠ΓͰ͖Δ #04)Ͱ͜͜·ͰͰ͖Δͧू
  63. •  QSPT •  %FWͱ0QTͷڥքઢ͕Θ͔Γ΍͍͢ •  %FWͷΰʔϧ͸ͪΌΜͱಈ͘SFMFBTF •  0QTͷΰʔϧ͸ͪΌΜͱಈ͘EFQMPZNFOU NBOJGFTU • 

    ෼ࢄγεςϜͷܧଓతӡ༻ʹద͍ͯ͠Δ •  ႈ౳ੑΛ୲อʢ࿮૊Έͱͯ͠൒ڧ੍తʹʣ •  Կ΋ߟ͑ͳͯ͘΋ϩʔϦϯάΞοϓσʔτ •  DPOT •  ͳ͔ͳ͔׳Εͳ͍ɺݫֶ͍͠शۂઢ •  SFMFBTFΛͪΌΜͱ࡞Δͷ͕೉͍͠ •  EFQMPZNFOUNBOJGFTUΛͪΌΜͱॻ͘ͷ͕ ೉͍͠ ͍͞͝ʹɿ#04)QSPTDPOT
  64. None