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

Rancher Meetup KYOTO #1 LT - 外からコンテナに繋ぐには? // R...

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. )PTU/FUXPSL)PTU1PSU Worker Worker Worker Pod Pod The Internet TCP:30201 TCP:30201

    1PE͕ىಈ͍ͯ͠ΔXPSLFS΁ͷ ௨৴ͷΈՄೳ ͲͷϊʔυͰ1PE͕ىಈ͍ͯ͠Δ͔ ஌Βͳ͍ͱ͍͚ͳ͍
  2. /PEF1PSU Worker Worker Worker Pod Pod Service Service Service The

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

    Internet TCP:30201 TCP:30201 ϊʔυͷμ΢ϯ࣌ɺ ͙͢ʹ੾Γସ͕͑Ͱ͖ͳ͍ TCP:30201
  4. -PBE#BMBODFS Worker Worker Worker Pod Pod Service Service Service The

    Internet DMPVEDPOUSPMMFSNBOBHFS͕ ϩʔυόϥϯαΛ࡞੒ ExternalIP ˞࣮૷͸DMPVEDPOUSPMMFSNBOBHFS͝ͱʹҟͳΓ·͢ ExternalIP ExternalIP ExternalIP -ϩʔυόϥϯα *1ΞυϨεϙʔτ ˞.FUBM-#ͷΑ͏ͳDDNΛ࢖Θͳ͍ํ๏΋͋Γ·͢
  5. *OHSFTT (,& Worker Worker Worker Pod Pod Service Service Service

    The Internet (PPHMF$MPVE-# NodePort NodePort NodePort -ϩʔυόϥϯα ϗετύεͰৼΓ෼͚ɺ44-ऴ୺
  6. *OHSFTT /(*/9 Worker Worker Worker Pod Pod Service Service Service

    The Internet ࣮ମ͸1PE 4FSWJDF ͳͲ Ingress -ϩʔυόϥϯα ϗετύεͰৼΓ෼͚ɺ44-ऴ୺