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

Rancher x OpenFaas x GCP

CapsuleCloud
December 07, 2017

Rancher x OpenFaas x GCP

【大阪】GCPUG in Osaka #5【GCP】~ Beginner's Edition ~
で発表した内容となります。
https://gcpug-osaka.connpass.com/event/71318/

Rancher, OpenFaaSの紹介と、GCPを使って実際に動かしたときの話をしました。

CapsuleCloud

December 07, 2017
Tweet

More Decks by CapsuleCloud

Other Decks in Technology

Transcript

  1. 3BODIFSY0QFO'BB4Y($1         

      ( $ 1 6 (  J O  0 T B L B   
  2. ࣗ ݾ ঺ հ  ࢁ ᖒ  Ұ ਔ

    Yamazawa Kazuhito ෱ ࢁ  ݈ Fukuyama Ken !LFOGEFW ϑϩϯτΤϯυ νʔϜϦʔμʔ όοΫΤϯυ ث༻ශ๡ !LZBNB[BXB@TTM
  3. ձ ࣾ ঺ հ  ˔ ೥ઃཱͷιϑτ΢ΣΞ։ൃձࣾ ˔ ڌ఺ɿେࡕ ຊࣾ

    ɺ౦ژɺ޿ౡɺ෱Ԭ ˔ ૊ΈࠐΈ͔ΒεϚϗΞϓϦɺ"*·Ͱ৭ʑ΍͍ͬͯ·͢ ࣗࣾΫϥ΢υαʔϏεɿ$BQTVMF$MPVE I U U Q T    D B Q T V M F D M P V E  J P ג ࣜ ձ ࣾ ε ʔ ύ ʔ ι ϑ τ ΢ Τ Ξ 4 V Q F S 4 P G U X B S F  $ P  - U E ΦϦδφϧΞχϝɿϖʔύʔͷதʹ͋ΔΧϛΛ৯΂Δ I U U Q T    Z P V U V  C F  %  4 + [ N 1 J W  : εϚϗΞϓϦ ɿອըΧϝϥ
  4. 

  5. 

  6. 

  7. 

  8. 

  9. 

  10.  0 Q F O ' B B 4 ͱ

    ͸ %PDLFS্Ͱಈ͘4FSWFSMFTTͳ'SBNFXPSL ίϯςφʹೖ͍ͬͯΕ͹ԿͰ΋'VODUJPOʹͳΓಘΔ ʜ %PDLFS4XBSNͱ,VCFSOFUFTͰͷಈ࡞͕αϙʔτ͞Ε͍ͯΔ
  11.  0 Q F O ' B B 4 ͱ

    ͸ ਓؾٸ্ঢதʂ
  12. 0 Q F O ' B B 4 ͷ ࢓

    ૊ Έ  gateway / / F U D  'O" Deploy Deploy Orchestrator API 'VODUJPO4UBDL 'O# Invoke Metrics/Scale جຊߏ੒ /
  13. 0 Q F O ' B B 4 ͷ ࢓

    ૊ Έ  gateway 'O" Deploy Deploy Orchestrator API 'VODUJPO4UBDL 'O# Invoke Metrics/Scale 'O" 'O" Scale ΍͹͘ͳͬͨΒࣗಈతʹεέʔϧʂ / / F U D  /
  14.  HTTP )FBEFST #PEZ )FBEFST #PEZ /usr/bin/node index.js SFRVFTU ඪ४ೖྗ

    TUEJO TUEPVU ඪ४ग़ྗ SFTQPOTF GQSPDFTT 'VODUJPOͷ࢓૊Έ 0 Q F O ' B B 4 ͷ ࢓ ૊ Έ
  15. ' V O D U J P O ͷ ࡞

    ੒ ϑ ϩ ʔ  QBDLBHFKTPO IBOEMFSKT faas-cli new Template Docker Image faas-cli build $POUBJOFS3FHJTUSZ faas-cli push جຊతʹ࣮૷͢Δͷ͸͚ͩ͜͜ʂ
  16. ' V O D U J P O ͷ σ

    ϓ ϩ Π  $POUBJOFS3FHJTUSZ faas-cli deploy gateway 'VODUJPO 'VODUJPO 'VODUJPO Pull Pull Deploy Deploy Orchestrator API / / F U D  /
  17. 'VODUJPOTXJUI($1 Ͷ͐(PPHMFɺ ࠓ೔ͷఱؾ͸ʁ  $ M P V E 


    ' V O D U J P O T \lJOUFOUz l'JOE8FBUIFSz^ \lTQFFDIz lࠓ೔͸੖ΕͰ͢z^
  18.  ύ ύ Ͳ ͜ Ϩ ʔ μ ʔ Webhook

    Function Foursquare Function LINE Function DialogFlow Function
  19. ࢀߟ  ˔ IUUQTXXXSBODIFSDPKQSBODIFSMJOLT ˔ 3BODIFSͷ೔ຊޠ৘ใ͕·ͱ·͍ͬͯΔϦϯΫू ˔ IUUQTUSZSBODIFSDPN ˔ 3BODIFSYܥΛແྉͰࢼͤΔαΠτ


    ʢͨͩ͠ϗετ͸ࣗ෼Ͱ༻ҙ͢Δඞཁ͋Γʣ ˔ IUUQTRJJUBDPNDZCFSCMBDLJUFNTCDBCG ˔ 3BODIFS 5FDI1SFWJFX Ͱ(,&ͷΫϥελΛΠϯϙʔτ ˔ IUUQTHJUIVCDPNPQFOGBBTGBBT ˔ 0QFO'BB4ͷίΞϓϩδΣΫτ ˔ IUUQTHJUIVCDPNPQFOGBBTGBBTDMJ ˔ 0QFO'BB4Λศརʹ࢖͏ͨΊͷ$-*
  20. 3 B O D I F S  + 1

     https://rancherjp.connpass.com/