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

BOSH101 autumn 2017

ozzozz
September 12, 2017

BOSH101 autumn 2017

Cloud Foundryで標準の構築手段として使われている、だけじゃないBOSHというツールの基本的な話をします。 BOSH特有の概念も含め、使い方とか内部動作とかを、わかりやすく解説するよう努力した結果のスライドです。
2015年11月に発表した「BOSH 101」https://speakerdeck.com/ozzozz/bosh-101 のアップデート版です。
2017/9/12のCloud Foundry Tokyo Meetup #4 https://www.meetup.com/ja-JP/Cloud-Foundry-Tokyo-Meetup/events/242732946/ にて発表。

ozzozz

September 12, 2017
Tweet

More Decks by ozzozz

Other Decks in Technology

Transcript

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

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

    0QFO4UBDL$1* W4QIFSF$1* ෼ࢄγεςϜͷߏ੒৘ใ Λͻͱͭͷ:".-Ͱ *BB4ґଘͷ ઃఆΛ஫ೖ (PPHMF$1* ɾɾɾ ˞$1*$MPVE1SPWJEFS*OUFSGBDF EFQMPZNFOU NBOJGFTU DMPVEDPOpH
  3. •  04ͷϕʔεΠϝʔδʹɺ࠷খݶͷҰൠతͳϢʔςΟ ϦςΟύοέʔδ DVSM PQFOTTI CVJMEFTTFOUJBMT  DMPVEHVFTUVUJMT ֤छϥΠϒϥϦͳͲ ɺ#04)

    BHFOUɺ͍͔ͭ͘ͷγεςϜઃఆϑΝΠϧɺΛՃ͑ ͯ࡞੒ͨ͠7.Πϝʔδͷ͜ͱ •  04ͷछྨ -JOVY͸σΟετϦ ͝ͱɺ͔ͭɺ*BB4ͷ छྨ͝ͱʹTUFNDFMMΛ༻ҙ •  7.͝ͱʹඞཁͳઃఆ /8पΓɺσΟεΫपΓɺೝ ূ৘ใͳͲ ͸શͯഉআ͠ɺ*BB4ܦ༝ NFUBEBUB TFSWJDFɺDPOpHESJWF ΍#04)BHFOUܦ༝ SFHJTUSZɺEJSFDUPSൃͷ/"54ϝοηʔδ Ͱ஫ೖ͞ ΕΔ৘ใͷΈʹج͍ͮͯ7.͕͋ΒΏΔ໾ׂΛՌͨͤ ΔΑ͏ʹઃܭ •  ηΩϡϦςΟ੬ऑੑͳͲʹΑΓஞ࣍Ξοϓσʔτ͞ ΕΔ͜ͱΛ૝ఆ͠όʔδϣϯ൪߸Λ͚ͭͯ؅ཧ #04)ʹ͓͚ΔTUFNDFMM
  4. •  TUFNDFMMΛ༻͍ͯ࡞੒͞Εͨ͋ΒΏΔ7.্ͰͷϏϧυ ΍σϓϩΠʹ͓͍ͯ࠶ར༻ՄೳͳܗͰ·ͱΊΒΕͨɺ ओʹҎԼͷϑΝΠϧͷू߹ମ KPCTσΟϨΫτϦ഑ԼKPCUFNQMBUFΛߏ੒ •  ઃఆ߲໨ͷఆٛ •  ઃఆϑΝΠϧɺ͋Δ͍͸ͦͷςϯϓϨʔτ • 

    ىಈɾఀࢭεΫϦϓτɺ͋Δ͍͸ͦͷςϯϓϨʔτ •  NPOJUͷઃఆ •  ಺แ͢ΔQBDLBHFͷϦετ QBDLBHFT TSD DPOpHσΟϨΫτϦ഑ԼQBDLBHFΛߏ੒ •  ϏϧυεΫϦϓτ •  ιʔείʔυɺ͋Δ͍͸ͦͷ͋Γ͔ "844ͳͲ  •  όΠφϦ෦ࡐ KBSϑΝΠϧͳͲ ɺ͋Δ͍͸ͦͷ͋Γ͔ •  ஞ࣍Ξοϓσʔτ͞ΕΔ͜ͱΛ૝ఆ͠όʔδϣϯ൪߸Λ͚ͭͯ ؅ཧ #04)ʹ͓͚ΔSFMFBTF
  5. ओʹҎԼʹࣔ͢σϓϩΠ৚݅ઃఆ߲໨Λ ·ͱΊͯهड़ͨ͠ɺͻͱͭͷ:".-ϑΝΠϧ OBNF෼ࢄγεςϜ EFQMPZNFOU ͷ໊শ SFMFBTFTσϓϩΠର৅SFMFBTFʲෳ਺ࢦఆՄʳ TUFNDFMMT࢖༻͢ΔTUFNDFMMʲෳ਺ࢦఆՄʳ VQEBUF σϓϩΠ࣌ͷಉ࣌ฒߦॲཧ৚݅ ฒߦՄ൱ɺಉ࣌σϓϩΠ

    7.਺ɺॲཧ଴ͪλΠϜΞ΢τ஋ͳͲ  JOTUBODF@HSPVQT ֤7.ʹؔ͠ɺ઀ଓ͞ΕΔӬଓతσΟεΫɺσϓϩΠ͞ ΕΔKPCɺ౰֘7.ಛ༗ͷઃఆύϥϝʔλɺ7.਺ QSPQFSUJFTશ7.ʹΘͨͬͯڞ௨ͳઃఆύϥϝʔλ #04)ʹ͓͚ΔEFQMPZNFOUNBOJGFTU v2εΩʔϚ४ڌ
  6. EFQMPZNFOUNBOJGFTUͷྫ •  $MPVE'PVOESZ https://github.com/cloudfoundry/cf-deployment/ blob/master/cf-deployment.yml •  $'ίϛϡχςΟͱͯ͠࠷৽ͷΠέͯΔߏ੒  •  ʲةݥʳ";ʹ·͕ͨͬͯܭ7.ΛσϓϩΠɻ

    ͦͷ·Μ·ैྔ੍*BB4্Ͱ࢖͏ͱഇ՝ۚϞʔυʹ •  $PODPVSTF$*˒#04)ೖ໳ʹΦεεϝ https://github.com/concourse/concourse/blob/ master/manifests/single-vm.yml •  7.ʹ%#ɺNBTUFSɺXPSLFSͷશػೳΛԡ͠ࠐΊΔ •  ,VCFSOFUFT ͍ΘΏΔ,VCPϓϩδΣΫτ  https://github.com/cloudfoundry-incubator/ kubo-deployment/blob/master/manifests/kubo.yml •  FUDEΫϥελ7.ɺNBTUFSϊʔυ7.ɺ XPSLFSϊʔυ7.ɺ)"QSPYZ7.ͷߏ੒
  7. ओʹҎԼʹࣔ͢*BB4ґଘͳઃఆ߲໨Λهड़ͨ͠:".-ϑΝΠϧ B[T σϓϩΠઌͱͳΓ͏Δ*BB4ͷ"WFJMBCMF;POF ʲෳ਺ࢦఆՄʳ OFUXPSLT 7.ͷ઀ଓઌωοτϫʔΫɺσϑΥϧτήʔτ΢ΣΠɺ %/4αʔόɺηΩϡϦςΟάϧʔϓɺ෇༩Մೳͳ*1ΞυϨ εϨϯδͳͲʲෳ਺ઃఆՄʳ WN@UZQFT7.ͷϑϨʔόɺ഑ஔઌɺ44)ΩʔϖΞ໊ͳͲͷઃఆ Λछผͱͯ͠ఆٛ

    EJTL@UZQFT7.ʹ઀ଓ͢ΔӬଓతԾ૝σΟεΫ QFSTJTUFOUEJTL ͷαΠζ΍λΠϓͳͲͷઃఆΛछผͱͯ͠ఆٛ DPNQJMBUJPOSFMFBTF಺ͷQBDLBHFͷϏϧυ༻7.ͷTUFNDFMMɺಉ ࣌ฒྻॲཧ7.ͷ਺ͱछผɺ઀ଓઌ/8ɺ഑ஔઌ";ͳͲ #04)ʹ͓͚ΔDMPVEDPOpH
  8. 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
  9. DPNQJMFESFMFBTF SFMFBTFʹؚ·ΕΔQBDLBHFΛϏϧυ͠ɺJOTUBODFʹͦͷ·· ΠϯετʔϧՄೳͱͨ͠DPNQJMFEQBDLBHFΛ·ͱΊͨ΋ͷ EFQMPZNFOU EFQMPZNFOUNBOJGFTUʹج͍ͮͯ#04)͔ΒσϓϩΠ͞Ε ؅ཧର৅ͱͳΔ෼ࢄγεςϜɻ ̍ͭPSෳ਺ͷJOTUBODFHSPVQ͔Βߏ੒͞ΕΔ JOTUBODFHSPVQ ಉҰͷߏ੒ΛͱΔJOTUBODF 㲈7.

    ͷू߹ɻ εέʔϧ JOTUBODFͷݸ਺ͱେ͖͞ Λௐ੔Մೳ QFSTJTUFOUEJTL JOTUBODFʹΞλον͞ΕӬଓతσʔλΛ֨ೲ͢ΔͨΊͷԾ૝ σΟεΫ ϒϩοΫετϨʔδ ɻ "84&#4ɺ0QFO4UBDL$JOEFS7PMVNFɺ($1ӬଓσΟεΫ ͳͲɻ JOTUBODFͱ͸ಠཱͯ͠؅ཧ͞ΕΔ #04)ͷجຊ֓೦  #04)͕଄Δ΋ͷ
  10. #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 #04)ʹΑΔ؅ཧର৅ QFSTJTUFOU EJTL FQIFNFSBMEJTLɺ΋͘͠ ͸SPPUσΟεΫͷۭ͖ ύʔςΟγϣϯΛNPVOU ઃఆϑΝΠϧɺ ىಈఀࢭεΫϦϓτ౳ TUFNDFMMͷ σΟϨΫτϦπϦʔ ͦͷ·· ֤KPCʹͯ࢖༻͞ΕΔ DPNQJMFEQBDLBHF ֤ίϯϙʔωϯτ͕ ग़ྗ͢Δϩά QFSTJTUFOUEJTLΛNPVOU
  11.   *BB4Λ४උ •  ςφϯτɺ"1*ΞΫηεΩʔɺ44)ݤϖΞɺηΩϡϦςΟάϧʔϓɺ 71$ 1SJWBUF/8ɺαϒωοτɺԾ૝ϧʔλ ͳͲ   #04)$-*Λ४උ  

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

    ????.yml EFQMPZNFOU NBOJGFTU αϯϓϧ͸ https://github.com/cloudfoundry/bosh- deployment ʹଘࡏ
  13. #ɽCPTIDSFBUFFOWίϚϯυͰ#04)ΛσϓϩΠ ɹ B $1*ͷϏϧυ QSPKFDU 73 pQ pQ TFDHSQ 7/8

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

    ϥΠϑαΠΫϧૢ࡞ͷͨΊͷ*BB4"1*ݺͼग़͠ Λ୲͏ SFHJTUSZ7.ىಈ࣌ɾߋ৽࣌ʹBHFOUʹΑͬͯ7.ʹઃఆ͢Δ*1ΞυϨε΍ σΟεΫϚ΢ϯτϙΠϯτͳͲΛอ࣋ CMPCTUPSFιʔείʔυܗࣜͱϏϧυࡁΈܗࣜͷSFMFBTFΛอ࣋ NPOJUPSBHFOU͔Β/"54Λհͯ͠ૹΒΕΔ7.ͷঢ়ଶ΍ΠϕϯτΛ؂ࢹɺ ҟৗ࣌ʹΞϥʔτૹग़΍7.࠶࡞੒ BHFOU#04)ʹΑΓ࡞੒͞Εͨ7.ʹৗற͠ɺEJSFDUPS͔Β/"54Λհͯ͠ ༩͑ΒΕΔࢦࣔʹैͬͯ7.ࣗମͷ֤छઃఆ΍CMPCTUPSF͔Βऔಘͨ͠ ιϑτ΢ΣΞύοέʔδͷϏϧυ΍࣮ߦΛߦ͏ͱͱ΋ʹɺ /"54Λհͯ͠7.ͷঢ়ଶ΍ΠϕϯτΛૹग़ $-*#04)Ϣʔβ ෼ࢄγεςϜӡ༻ऀ ͕࢖༻͠ɺ#04)"1*΁ͷ ֤छΞΫηε΍ɺSFMFBTF࡞੒ͳͲΛ୲͏
  15.   *BB4Λ४උ •  ςφϯτɺ"1*ΞΫηεΩʔɺ44)ݤϖΞɺηΩϡϦςΟάϧʔϓɺ 71$ 1SJWBUF/8ɺαϒωοτɺԾ૝ϧʔλ ͳͲ   #04)$-*Λ४උ  

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

    $ bosh alias-env –e bosh --ca-cert=<path> $ bosh –e bosh login ˠʢID/PWೝূʣ
  17. #ɽTUFNDFMM 7.Πϝʔδ ͷ*BB4΁ͷొ࿥ QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN

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

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

    client 'admin' Name Version OS CPI CID bosh-openstack-kvm-ubuntu-trusty-go_agent 3445.2* ubuntu- trusty - d0eb8193 -5a02-4df3-88c8-e636460a4b43 ~ 3431.10 ubuntu- trusty - ba8dbe7f -5d83-48f5-9898-caaa8d59e082 (*) Currently deployed 2 stemcells Succeeded
  20. $ɽSFMFBTFͷΞοϓϩʔυ QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7.

    pQ EJSFDUPS CMPCTUPSF $ bosh -e bosh upload-release ... Ξοϓϩʔυ͞Εͨ SFMFBTF಺ͷQBDLBHF͸ ιʔείʔυܗࣜ ˞EFQMPZNFOUNBOJGFTUʹσϓϩΠର৅SFMFBTFͷϦϞʔτ63-ͱ4)"Λ ɹهೖ͢Δ͜ͱͰɺ͜ͷखॱΛεΩοϓՄೳʲޙड़ʳ
  21. $MPVE'PVOESZSVOUJNF DGSFMFBTF ͷ৔߹   $PODPVSTF$*ͷ৔߹ #04)΁ͷίϛϡχςΟ൛SFMFBTFͷొ࿥ $ bosh -e

    bosh upload-release https://bosh.io/d/ github.com/cloudfoundry/cf-release?v=272 --sha1 d2f26e2fb285aa4377a0c5fe862a47dd941a3813 $ bosh -e bosh upload-release https://bosh.io/d/ github.com/concourse/concourse?v=3.4.1 --sha1 b9c3cd85caccf0dae7406f8d7dfc237b4c698ce6
  22. #04)ʹొ࿥ࡁͷSFMFBTFΛࢀর $ bosh -e bosh releases Using environment '10.0.0.2' as

    client 'admin' Name Version Commit Hash cf 272* 5b13d444+ cflinuxfs2 1.150.0* 47af5aef+ concourse 3.4.1* 6491875 diego 1.25.1* 11bc5a9 garden-runc 1.9.2* faeee28 (*) Currently deployed (+) Uncommitted changes 5 releases Succeeded
  23. σϓϩΠ࣌ʹSFMFBTFΛࣗಈΞοϓϩʔυ͢Δ ͨΊͷEFQMPZNFOUNBOJGFTUͷॻ͖ํ releases: - name: cf version: 272 url: https://bosh.io/d/github.com/cloudfoundry/cf-release?v=272

    sha1: d2f26e2fb285aa4377a0c5fe862a47dd941a3813 - name: diego version: 1.25.1 url: https://bosh.io/d/github.com/cloudfoundry/diego-release?v=1.25.1 sha1: a99d4914d08ea395955163e0b0882221e022248d - name: garden-runc version: 1.9.2 url: https://bosh.io/d/github.com/cloudfoundry/garden-runc-release?v=1.9.2 sha1: de976393aa5f2e26913dec02770076cb4cd966d2 - name: cflinuxfs2 version: 1.150.0 url: https://bosh.io/d/github.com/cloudfoundry/cflinuxfs2-release?v=1.150.0 sha1: d73a8f8241cb40354da33488da6e4511b711cc6c ˞#04)ʹ͢ͰʹΞοϓϩʔυࡁΈͰ͋Ε͹εΩοϓ͞ΕΔ
  24. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

    EJSFDUPS $ bosh deploy ?????.yml &ɽσϓϩΠ ɹ B EFQMPZNFOUNBOJGFTUͷΞοϓϩʔυ EFQMPZNFOU NBOJGFTU
  25. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

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

    EJSFDUPS &ɽσϓϩΠ ɹ D QBDLBHF ιʔείʔυܗࣜ ͷϏϧυ EFQMPZNFOU NBOJGFTU Ϗϧυ༻ 7. Ϗϧυ༻ 7. BHFOU CMPCTUPSF Ϗϧυॲཧ
  27. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

    EJSFDUPS &ɽσϓϩΠ ɹ E DPNQJMFEQBDLBHFͷΞοϓϩʔυ EFQMPZNFOU NBOJGFTU Ϗϧυ༻ 7. Ϗϧυ༻ 7. BHFOU CMPCTUPSF Ϗϧυॲཧ
  28. QSPKFDU 73 TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ EJSFDUPS

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

    EJSFDUPS &ɽσϓϩΠ ɹ G DPNQJMFEQBDLBHFͷΠϯετʔϧ EFQMPZNFOU NBOJGFTU Ϗϧυ༻ 7. 7. BHFOU CMPCTUPSF Πϯετʔϧ
  30. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

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

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

    EJSFDUPS &ɽσϓϩΠ ɹ J BHFOU͔Βͷ7.ঢ়ଶͷఆظૹग़ EFQMPZNFOU NBOJGFTU Ϗϧυ༻ 7. 7. BHFOU NPOJU ϓϩηε ϓϩηε NPOJUPS
  33. #04)ͰσϓϩΠࡁͷ෼ࢄγεςϜΛࢀর $ bosh -e bosh deployments Using environment '10.0.0.2' as

    client 'admin' Name Release(s) Stemcell(s) Team(s) Cloud Config concourse garden-runc/1.9.2 bosh-openstack- kvm-ubuntu-trusty-go_agent/3445.2 - latest concourse/3.4.1 cf diego/1.25.1 bosh-openstack- kvm-ubuntu-trusty-go_agent/3445.2 - latest cflinuxfs2/1.150.0 cf/272 garden-runc/1.9.2 2 deployments Succeeded
  34. #04)ͰσϓϩΠࡁͷ7.ͷҰཡΛࢀর $ bosh -e bosh -d concourse vms Using environment

    '10.0.0.2' as client 'admin' Task 7331. Done Deployment 'concourse' Instance Process State AZ IPs VM CID VM Type master/7d1753b7-c17f-481f-9e48-aada505dbf06 running default 10.0.0.91 a85e0a5d-d497-4f57-802f-7cbb37d68bfd small 192.168.13.135 worker/3b29c3e6-b67b-4e4f-ba2c-afafd033453c running default 10.0.0.105 dd2ab5ad-c009-49eb-b94a-8ffb976f90fe small 2 vms Succeeded Task 7329. Done
  35. QSPKFDU 73 pQ TFDHSQ 7/8 #04)$-* TUFN DFMM #04)7. pQ

    EJSFDUPS ̑ɽσϓϩΠ͞Εͨ෼ࢄγεςϜͷಈ࡞֬ೝ EFQMPZNFOU NBOJGFTU Ϗϧυ༻ 7. 7. ϓϩηε ϓϩηε ςετ༻ 7. BHFOU $1* ಈ֬ςετ $ bosh -e bosh run-errand ... TNPLFUFTUɺ BDDFQUBODFUFTU ͳͲ
  36. Ø  #04)༻%#ʹɺ#04)૊ΈࠐΈͷ1PTUHSF42-͚ͩ Ͱ͸ͳ͘ɺ֎෦ͷ.Z42-αʔόͱ͔΋࢖͑Δ Ø  #04)༻CMPCTUPSFʹɺ#04)૊ΈࠐΈͷ8FC%"7 ͚ͩͰ͸ͳ͘ɺ"844 "1*ޓ׵੡඼ؚΉ ΍($4ͱ ͍ͬͨ֎෦ΦϒδΣΫτετϨʔδ΋࢖͑Δ Ø 

    #04)͔ΒσϓϩΠ͠؂ࢹ͍ͯ͠Δ7.ͷނোΛ֎෦ ʹ௨஌ͨ͠Γɺ7.Λࣗಈతʹ࠶࡞੒ͨ͠ΓͰ͖Δ Ø  #04)͔ΒσϓϩΠ͠؂ࢹ͍ͯ͠Δ7.ͷجຊతͳϝ τϦΫεΛऩू͠ɺ֎෦Ͱอ؅ɾ෼ੳͰ͖Δ Ø  QFSTJTUFOUEJTLͷεφοϓγϣοτΛखಈఆظࣗ ಈߋ৽σϓϩΠ࣌ࣗಈͰऔಘͰ͖Δ Ø  #04)͔ΒσϓϩΠͨ͠7.ͷ*1ΞυϨεΛ໊લղܾ Ͱ͖Δ಺෦%/4ͱ౷߹Ͱ͖Δ Ø  EFQMPZNFOUNBOJGFTUʹهड़͢Δ΂͖ύεϫʔυ΍ ൿີݤͳͲΛผ؅ཧͨ͠Γࣗಈੜ੒ͨ͠ΓͰ͖Δ #04)Ͱ͜͜·ͰͰ͖Δͧू
  37. EFQMPZNFOUNBOJGFTUʹهड़͢Δ΂͖ύεϫʔυ΍ ൿີݤͳͲΛผ؅ཧͨ͠Γࣗಈੜ੒ͨ͠ΓͰ͖Δ݅ •  EFQMPZNFOUNBOJGFTUʹϓϨʔεϗϧμ ʮ  ʯΛॻ͚Δ •  EFQMPZNFOUNBOJGFTUʹࣗಈੜ੒͍ͨ͠ ύϥϝʔλΛఆٛͰ͖Δ

    properties: cc: mutual_tls: ca_cert: ((cf_ca.certificate)) private_key: ((cc_ssl.private_key)) public_cert: ((cc_ssl.certificate)) variables: - name: cf_ca type: certificate options: is_ca: true common_name: cf-diego-ca - name: cc_ssl type: certificate options: ca: cf_ca common_name: cloud-controller-ng.service.cf.internal alternative_names: [cloud-controller-ng.service.cf.internal] ࣗಈੜ੒ύϥϝʔλ ͷఆٛ෦෼
  38. EFQMPZNFOUNBOJGFTUʹهड़͢Δ΂͖ύεϫʔυ΍ ൿີݤͳͲΛผ؅ཧͨ͠Γࣗಈੜ੒ͨ͠ΓͰ͖Δ݅ •  σϓϩΠ࣌ʹύϥϝʔλΛࣗಈੜ੒ ͠ϓϨʔεϗϧμΛຒΊΔ $ bosh -e bosh deploy

    cf.yml -v username=ozz
 --vars-file=./vars.yml --vars-store=./creds.yml ˞ --vars-file ͸ϑΝΠϧ͔ΒͷࢀরͷΈɺ ɹ--vars-store͸ύϥϝʔλະੜ੒ͳΒੜ੒ͯ͠ϑΝΠϧʹॻ͖ࠐΈɺ ɹɹɹɹɹɹɹɹɹੜ੒ࡁͳΒࢀর •  ࣗಈੜ੒ͨ͠ύϥϝʔλΛϩʔΧϧ ʹอ؅͢Δͷ͸ΠϠͩ ˠ$SFE)VCΛ࢖͏ʂ •  $SFE)VCͱ̷ ͜͜Ͱྗਚ͖Δ
  39. •  QSPT •  %FWͱ0QTͷڥքઢ͕Θ͔Γ΍͍͢ •  %FWͷΰʔϧ͸ͪΌΜͱಈ͘SFMFBTF •  0QTͷΰʔϧ͸ͪΌΜͱಈ͘EFQMPZNFOU NBOJGFTU • 

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