k8sとNginxでオートスケール / Autoscaling with k8s and Nginx

k8sとNginxでオートスケール / Autoscaling with k8s and Nginx

C3b68d6841dcd343be9685f1cdaf8ac9?s=128

Atsushi Tanaka

December 11, 2019
Tweet

Transcript

  1. ©2019 Wantedly, Inc. LTͱ/HJOYͰΦʔτεέʔϧ ʢୈճʣ'/(*/9$PNNVOJUZʂ-5 Dec 11, 2019 - Atsushi

    Tanaka
  2. ©2019 Wantedly, Inc. $ whoami @bgpat / Atsushi Tanaka Infrastructure

    Engineer at Wantedly, Inc. Kubernetes / Docker / Go / JavaScript / Vue.js
  3. ©2019 Wantedly, Inc.  8BOUFEMZͰͷαʔϏε։ൃ  /HJOYΛ࢖ͬͨΦʔτεέʔϧ  ۙگ ࠓ೔࿩͢͜ͱ

  4. ©2019 Wantedly, Inc. 8BOUFEMZͰͷαʔϏε։ൃ ϚΠΫϩαʔϏε

  5. ©2019 Wantedly, Inc. w ͍ΖΜͳݴޠͰॻ͔ΕͨαʔϏε w ಉ͡,VCFSOFUFTΫϥελʹෳ਺ͷαʔϏε w ໿ݸͷϚΠΫϩαʔϏε w

    ֤ΤϯδχΞ͕։ൃ͔ΒσϓϩΠ·Ͱߦ͏ 8BOUFEMZͷϚΠΫϩαʔϏεͷಛ௃
  6. ©2019 Wantedly, Inc. /HJOYΛ࢖ͬͨΦʔτεέʔϧ ෛՙʹ߹ΘͤͯαʔόʔΛ૿΍͍ͨ͠

  7. ©2019 Wantedly, Inc. w )PSJ[POUBM1PE"VUPTDBMFS )1"  w $16ෛՙ͕ߴ͍QPE αʔόʔ

    Λ૿΍͢ w ຊ౰ʹϠό͍ͱ͖͸༗ޮ w গ͠ϦΫΤετ͕ଟ͍͘Β͍ͩͱԿ΋ى͖ͳ͍ LTͷඪ४ػೳͰΦʔτεέʔϧ
  8. ©2019 Wantedly, Inc. w )PSJ[POUBM1PE"VUPTDBMFS )1"  w $16ෛՙ͕ߴ͍QPE ίϯςφ

    Λ૿΍͢ w ຊ౰ʹϠό͍ͱ͖͸༗ޮ w গ͠ϦΫΤετ͕ଟ͍͘Β͍Կ΋ͯ͘͠Εͳ͍ LTͷඪ४ػೳͰΦʔτεέʔϧ ΋ͬͱޮ཰ͷ͍͍ํ๏͕͋Δ͸ͣ
  9. ©2019 Wantedly, Inc. w $VTUPN.FUSJDT )1" w ΞϓϦέʔγϣϯͷϝτϦΫε͕࢖͑Δ w /HJOYͷϝτϦΫε͕࢖͑ΔͷͰ͸ʁ

    ΑΓޮ཰తͳΦʔτεέʔϧ
  10. ©2019 Wantedly, Inc. ͳͥ/HJOYͳͷ͔

  11. ©2019 Wantedly, Inc. ͳͥ/HJOYͳͷ͔ w /HJOY͕طʹ1PE ίϯςφͷू߹ ʹೖ͍ͬͯͨ w stub_statusͷ

    writing
 ɹɹɹɹɹɹɹɹ㲈ॲཧதͷίωΫγϣϯ਺
  12. ©2019 Wantedly, Inc. 1SPNFUIFVT 1SPNFUIFVT 1PE 1PE .BTUFS/PEF $VTUPN.FUSJDT "1*4FSWFS

    ,VCFSOFUFT "1*4FSWFS 1PE "QQMJDBUJPO /HJOY OHJOY FYQPSUFS proxy )1" metrics proxy stub_status 1SPNFUIFVT 1SPNFUIFVT 0QFSBUPS manage metrics %FQMPZNFOU scale 3FQMJDB4FU manage manage metrics )1" $VTUPN.FUSJDT /HJOY
  13. ©2019 Wantedly, Inc. w طଘͷϚΠΫϩαʔϏε࡞੒ϑϩʔʹ૊ΈࠐΜͩ w ΤϯδχΞ͕࢖͏πʔϧͷதΛେվम w ඞͣ/HJOYΛೖΕΔΑ͏ʹςϯϓϨʔτΛमਖ਼ Φʔτεέʔϧج൫ͷ੔උͰ΍ͬͨ͜ͱ

  14. ©2019 Wantedly, Inc. ۙگ ಋೖ͔Β೥൒Ҏ্ܦͬͨࠓ

  15. ©2019 Wantedly, Inc. w ύϑΥʔϚϯεվળͱίετ࡟ݮʹߩݙ w ΄΅͢΂ͯͷϚΠΫϩαʔϏεʹಋೖ͞Εͨ w ͳ͔ͳ͔ख์ͤͳ͍ج൫ʹͳ͍ͬͯΔ ۙگ

  16. ©2019 Wantedly, Inc. w ଞͷج൫ (,&&,4ͳͲ ΁ͷҠߦͷোนʹ w ͦΖͦΖϝϯςφϯε͕ඞཁ ࠔͬͨ͜ͱ΋

  17. ©2019 Wantedly, Inc.  8BOUFEMZͰͷϚΠΫϩαʔϏε։ൃ  /HJOYΛ࢖ͬͨΦʔτεέʔϧج൫  ೥Ҏ্ӡ༻ͯ͠Έͯ ·ͱΊ

  18. ©2019 Wantedly, Inc. We ’re H ir in g !

    https://www.wantedly.com/companies/wantedly