Rancher x OpenFaas x GCP

Ef19abf625b73a5d01e309326bedb278?s=47 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を使って実際に動かしたときの話をしました。

Ef19abf625b73a5d01e309326bedb278?s=128

CapsuleCloud

December 07, 2017
Tweet

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.  3BODIFSY0QFO'BB4Y($1 ͜͜Β΁Μ࢖ͬͯ%&.0΋͠·͢

  6. 

  7. 3BODIFSͱ͸ 3BODIFS͸ෳ਺ͷίϯςφΫϥελΛ؅ཧͰ͖ΔϓϥοτϑΥʔϜͰ͢ IUUQTZPVUVCF715/4J+J36

  8. 3BODIFSͱ͸ IUUQTZPVUVCF715/4J+J36

  9. ΫϥελͷΠϝʔδ  Infrastructure Orchestrator Application ˞͋͘·ͰΠϝʔδͰ͢ ૯߹తʹ؅ཧ͠·͢ʂ

  10.  ϚϧνΫϥελ؅ཧ΋Մೳ Rancher Server

  11.  5SZ3BODIFS https://try.rancher.com ແྉͰ3BODIFS4FSWFS Λ࢖͏͜ͱ͕Ͱ͖·͢ʂ ʢͨͩ͠ɺϗετ͸֤ࣗͰ༻ҙ͢Δඞཁ͋Γʣ https://www.slideshare.net/cyberblackvoom/tryranchercomrancher ʮUSZSBODIFSDPNͰ
 SBODIFSΛ࢝ΊΔʯ ʢDZCFSCMBDL͞ΜʹΑΔΘ͔Γ΍͍͢εϥΠυ෇͖ʣ

  12. % & . 0 

  13. 3BODIFS IUUQSBODIFSDPNSBODIFS ೥2ʹ("༧ఆʂ

  14. ͟ ͬ ͘ Γ Π ϝ ʔ δ Ͱ ݴ

    ͏ ͱ 
  15. 

  16. 

  17. 

  18. 

  19.  .BLFTJU&BTZ

  20. 

  21.  0 Q F O ' B B 4 ͱ

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

    ͸ ਓؾٸ্ঢதʂ
  23.  0 Q F O ' B B 4 ͱ

    ͸
  24. 0 Q F O ' B B 4 ͷ ࢓

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

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

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

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

    ϓ ϩ Π  $POUBJOFS3FHJTUSZ faas-cli deploy gateway 'VODUJPO 'VODUJPO 'VODUJPO Pull Pull Deploy Deploy Orchestrator API / / F U D  /
  29. % & . 0 

  30. 'VODUJPOTXJUI($1 Ͷ͐(PPHMFɺ ࠓ೔ͷఱؾ͸ʁ  $ M P V E 


    ' V O D U J P O T \lJOUFOUz l'JOE8FBUIFSz^ \lTQFFDIz lࠓ೔͸੖ΕͰ͢z^
  31. Ͷ͐(PPHMFɺ ࠓ೔ͷఱؾ͸ʁ  \lJOUFOUz l'JOE8FBUIFSz^ \lTQFFDIz lࠓ೔͸੖ΕͰ͢z^ 'VODUJPOTXJUI0QFO'BB4

  32.  ύ ύ Ͳ ͜ Ϩ ʔ μ ʔ Webhook

    Function Foursquare Function LINE Function DialogFlow Function
  33. ʢࢀߟʣΞʔΩςΫνϟʹ͍ͭͯ  https://goo.gl/qtsJ9Y

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


    ʢͨͩ͠ϗετ͸ࣗ෼Ͱ༻ҙ͢Δඞཁ͋Γʣ ˔ IUUQTRJJUBDPNDZCFSCMBDLJUFNTCDBCG ˔ 3BODIFS 5FDI1SFWJFX Ͱ(,&ͷΫϥελΛΠϯϙʔτ ˔ IUUQTHJUIVCDPNPQFOGBBTGBBT ˔ 0QFO'BB4ͷίΞϓϩδΣΫτ ˔ IUUQTHJUIVCDPNPQFOGBBTGBBTDMJ ˔ 0QFO'BB4Λศརʹ࢖͏ͨΊͷ$-*
  35. ࢀߟ  https://www.weave.works/blog/openfaas-gke

  36. ࠂ ஌ 

  37. 3 B O D I F S  + 1

     https://rancherjp.connpass.com/
  38. 4 M B D L  http://slack.rancher.jp/

  39. Rancher Meetup #03 in Osaka  https://rancherjp.connpass.com/event/73019/

  40. ͝ ਗ਼ ௌ ͋ Γ ͕ ͱ ͏ ͝ ͟

    ͍ · ͠ ͨ ʂ