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

Rancher Meetup KYOTO #1 LT - 外からコンテナに繋ぐには? // Rancher Meetup Kyoto 2018-04-27

Rancher Meetup KYOTO #1 LT - 外からコンテナに繋ぐには? // Rancher Meetup Kyoto 2018-04-27

2018/4/27 京都にて行われたRancher Meetup #1でのLT資料

Kazumichi Yamamoto

April 27, 2018
Tweet

More Decks by Kazumichi Yamamoto

Other Decks in Technology

Transcript

  1. 3BODIFS.FFUVQ,:050 !ZBNBNPUP@GFCD ֎͔Βίϯςφʹܨ͍͗ͨʂ 

  2. ,B[VNJDIJ :BNBNPUP !ZBNBNPUP@GFCD 8IP

  3.  ֎͔Βίϯςφʹܨ͙ʹ͸ʁ

  4. Ϋϥελ֎͔Β ίϯςφʹܨ͙ʹ͸ʁ

  5. n )PTU/FUXPSL)PTU1PSU n /PEF1PSU n -PBE#BMBODFS n *OHSFTT (,&/(*/9ͳͲ ˞&YUFSOBM*1T΍LVCF

    QSPYZ౳΋͋Γ·͕͢লུ
  6. )PTU/FUXPSL)PTU1PSU ü 1PEΛىಈͨ͠ϊʔυͷ ωοτϫʔΫϙʔτΛ௚઀࢖͏

  7. )PTU/FUXPSL)PTU1PSU Worker Worker Worker Pod Pod The Internet TCP:30201 TCP:30201

    1PE͕ىಈ͍ͯ͠ΔXPSLFS΁ͷ ௨৴ͷΈՄೳ ͲͷϊʔυͰ1PE͕ىಈ͍ͯ͠Δ͔ ஌Βͳ͍ͱ͍͚ͳ͍
  8. ü ಛఆϙʔτ΁ͷண৴Λ 1PEʹৼΓ෼͚Δ4FSWJDF LVCFQSPYZʹΑΔJQUBCMFT /PEF1PSU

  9. /PEF1PSU Worker Worker Worker Pod Pod Service Service Service The

    Internet TCP:30201 TCP:30201 ֤8PSLFSͰࢦఆϙʔτ΁ͷ ண৴ΛQSPYZ JQUBCMFT TCP:30201 ֤ϊʔυͷ*1ΞυϨεΛ %/4ొ࿥ͯ͠ϗετ໊ͰΞΫηε͢Ε͹ *11PEͷঢ়گΛؾʹ͠ͳͯ͘0,
  10. %/4ϥ΢ϯυϩϏϯͩͱɺɺɺ Worker Worker Worker Pod Pod Service Service Service The

    Internet TCP:30201 TCP:30201 ϊʔυͷμ΢ϯ࣌ɺ ͙͢ʹ੾Γସ͕͑Ͱ͖ͳ͍ TCP:30201
  11. ü -ϩʔυόϥϯαʔͰ 4FSWJDF΁ͷΞΫηεΛৼΓ෼͚ -PBE#BMBODFS

  12. -PBE#BMBODFS Worker Worker Worker Pod Pod Service Service Service The

    Internet DMPVEDPOUSPMMFSNBOBHFS͕ ϩʔυόϥϯαΛ࡞੒ ExternalIP ˞࣮૷͸DMPVEDPOUSPMMFSNBOBHFS͝ͱʹҟͳΓ·͢ ExternalIP ExternalIP ExternalIP -ϩʔυόϥϯα *1ΞυϨεϙʔτ ˞.FUBM-#ͷΑ͏ͳDDNΛ࢖Θͳ͍ํ๏΋͋Γ·͢
  13. ü -ϩʔυόϥϯαʔͰ 4FSWJDF΁ͷΞΫηεΛৼΓ෼͚ *OHSFTT

  14. *OHSFTT (,& Worker Worker Worker Pod Pod Service Service Service

    The Internet (PPHMF$MPVE-# NodePort NodePort NodePort -ϩʔυόϥϯα ϗετύεͰৼΓ෼͚ɺ44-ऴ୺
  15. (,&Ҏ֎ͷ৔߹͸ʁ *OHSFTT ࣗ෼Ͱ*OHSFTT$POUSPMMFSΛ ༻ҙ͢Ε͹0,

  16. *OHSFTT /(*/9 Worker Worker Worker Pod Pod Service Service Service

    The Internet ࣮ମ͸1PE 4FSWJDF ͳͲ Ingress -ϩʔυόϥϯα ϗετύεͰৼΓ෼͚ɺ44-ऴ୺
  17. *OHSFTT /(*/9 Worker Worker Worker Pod Pod Service Service Service

    The Internet Ingress
  18.  3BODIFSͰ͸ʁ

  19. 8FC6*͔ΒઃఆͰ͖·͢

  20. 8PSLMPBETͷσϓϩΠ

  21. )PTU1PSU

  22. /PEF1PSU

  23. -PBE#BMBODFS ˞3,&Ͱ͸DMPVEDPOUSPMMFSNBOBHFSFYUFSOBM͸ࢦఆͰ͖·ͤΜ W࣌఺ ˞DMPVEDPOUSPMMFSNBOBHFS͕ඞཁ

  24. *OHSFTT$POUSPMMFS ͍͍ײ͡ʹηοτΞοϓࡁΈ

  25. *OHSFTT ύε సૹઌ Ѽઌϗετ໊

  26. खܰʹ࢖͑ΔΑʂ

  27. &OKPZ