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

究極のInfrastructure as Codeを目指して

究極のInfrastructure as Codeを目指して

Infra Study Meetup #1「Infrastructure as Code」のLT資料です
https://forkwell.connpass.com/event/171560/

Shin'ya Ueoka

April 24, 2020
Tweet

More Decks by Shin'ya Ueoka

Other Decks in Technology

Transcript

  1. LJOUPOFDPNͷߏ੒ 4 ֤αʔϏε͕ར༻͢Δ ϚωʔδυαʔϏε Amazon EKS Service A Service B

    Service C Service D Service E Service F Service G Service H LJOUPOFDPNΛߏ੒ ͢ΔαʔϏε܈ ‰͜ͷߏ੒ΛInfra as CodeͰߏஙɾӡ༻ Ϛωʔδυ,VCFSOFUFT
  2. LJOUPOFDPNͷϨϙδτϦ ‰ϞϊϨϙʹAWSͷߏ੒ͱαʔϏεΛؚΉ • ϨϙδτϦͷঢ়ଶ͕Πϯϑϥͷཧ૝ঢ়ଶ 6 Amazon EKS Service A Service

    B Service C Service D Service E Service F Service G Service H CloudFormation Service A Service Z ιʔείʔυʢϞϊϨϙʣ $MPVE'PSNBUJPO͕ ཧ૝ঢ়ଶʹΠϯϑϥΛઃఆ ,VCFSOFUFT্ͷαʔϏε΋ ࠩ෼ݕ஌ˍߋ৽͍ͨ͠ ͜ͷࠩ෼Λ Ͳ͏ຒΊΔ͔ʁ
  3. αʔϏεͷߋ৽ ‰੒Ռ෺ͷࠩ෼ݕ஌ͯࠩ͠෼͕͋Ε͹σϓϩΠ • ΠϝʔδΛߏ੒͢ΔϑΝΠϧͷϋογϡ஋ΛΠϝʔδλάͱ͢Δ • ιʔείʔυ͕มߋ͞ΕΔͱϦϏϧυͯ͠docker push 7 ϋογϡؔ਺ H

    ( ) %PDLFSpMF ઃఆ ϑΝΠϧ . . spec: containers: - name: my-service-a image: quay.io/cybozu/my-service-a:BKCXSIF3Z3GEH2OEIM5BLEQBP4 ιʔε ίʔυ ιʔείʔυ͕มߋ͞ΕΔͱ Πϝʔδλά΋৽͘͠ͳΔ ϥΠϒϥϦ .
  4. ϕʔεΠϝʔδͷߋ৽ 9 Service A ϕʔεΠϝʔδ Service B ιʔείʔυʢϞϊϨϙʣ Amazon EKS

    4FSWJDF " 4FSWJDF # 4FSWJDF $ ߋ৽ ֤αʔϏεΛϦϏϧυ ʢdocker build && docker pushʣ ৽͍͠ΠϝʔδΛల։
 ʢkubectl applyʣ 4FSWJDF " 4FSWJDF # 4FSWJDF $ σϓϩΠ
 ύΠϓϥΠϯ ΠϝʔδλάΛιʔείʔυ͔Βܭࢉ ϕʔε Πϝʔδ
  5. 11