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

20200805 GCP Cloud Run

saramune
August 05, 2020

20200805 GCP Cloud Run

GCP Cloud Runで始める簡単モダンなコンテナアプリ開発

saramune

August 05, 2020
Tweet

More Decks by saramune

Other Decks in Technology

Transcript

  1. ஫ҙ఺ w ($1ެࣜͷղઆ΍ࢿྉͱࣅͯ·͢ w Ͳ͏ͯ͠΋ࣅͯ͠·͏ʜ w $MPVE3VOʹ໨֮Ίͦ͏ͳํ͸ੋඇެࣜ΋ࢀর͍ͩ͘͞ w ·͡Ͱ$MPVE3VOͷ࿩͚ͩͰ͢ w

    ίϯςφ΍,VCFSOFUFTͷਂ͍࿩͸͠·ͤΜ w ࣭໰౳͸:PVUVCF-JWFͷίϝϯτʹͲ͏ͧʂ w ࢿྉ͸ޙ೔ڞ༗͠·͢
  2. $MPVE3VOϓϥοτϑΥʔϜ w $MPVE3VO ϑϧϚωʔδυ  w ࠓճ͸ͪ͜ΒʹϑΥʔΧε w $MPVE3VOGPS"OUIPT w

    "OUIPT(,&্ʹߏங͞ΕΔ$MPVE3VO w ΑΓࣗ༝౓͕ߴ͍ (16࢖͑ΔͳͲ
  3. αʔϏε w ࠷্Ґͷ࿦ཧϦιʔε w ಉҰίϯςφΛ·ͱΊͯந৅Խ͢Δ w ΞϓϦͷΤϯυϙΠϯτ )5514 Λఏڙ͢Δ w

    BSVOBQQυϝΠϯ·ͨ͸ΧελϜυϝΠϯ͕બ୒Մೳ w -FU`T&ODSZQUͷ44-ূ໌ॻΛࣗಈͰੜ੒ɺׂΓ౰ͯͯ͘ΕΔ
  4. ίϯςφΠϯελϯε  w <W$16> w PS w ϝϞϦ<.#> w <.#>ʙ<(#>

    w ϑΝΠϧγεςϜಡΈॻ͖Մ w Ͱ΋جຊ͸εςʔτϨεʹ͠·͠ΐ͏
  5. ࠷ۙͷ6QEBUF  w ؇΍͔ͳϩʔϧΞ΢τ w ৽نϦϏδϣϯʹྲྀ͢τϥϑΟοΫͷׂ߹Λ੍ޚՄೳʹ w ৽نϦϏδϣϯσϓϩΠ w λά෇͖63-͕ੜ੒͞ΕΔ

    w τϥϑΟοΫͷͷΈ৽نϦϏδϣϯʹ޲͚Δ gcloud beta run deploy myservice —image image:f5bd774 --no-traffic --tag green https://green---myservice-abcdef.a.run.app gcloud beta run services update-traffic myservice --to-tags green=1
  6. ͓·͚ʢ࣮૷ྫʣ w γϯϓϧͳ8FCΞϓϦ େࡕͷۭ͖ԻָελδΦݕࡧ  w ϑϩϯτͱόοΫ ελδΦݕࡧ෦ ͸ผͷ$MPVE3VO w

    3&45"1*Ͱ઀ଓ w ϚΠΫϩαʔϏεͬΆ͍͜ͱ͕͔ͨͬͨ͠ w ࠓ͸ޙչ͍ͯ͠Δʢແཧʹͪ͗Δͱ͠ΜͲ͍ʣ w $*$%ɺϞχλϦϯά΋׬උ w <&3303>Ͱͻ͔͚ͬͯΞϥʔτ