All Articles

Ingress ์ปจํŠธ๋กค๋Ÿฌ๋Š” Ingress ์„ค์ •์„ ์–ด๋–ป๊ฒŒ ์ฝ์–ด์˜ฌ๊นŒ?

  • ์˜คํ›„์— ํšŒ์‚ฌ์—์„œ ์–ด๋–ค ๋ถ„์ด Ingress ์„ค์ •์ด ์–ด๋–ป๊ฒŒ Traefik ์ปจํŠธ๋กค๋Ÿฌ์— ๋“ค์–ด๊ฐ€๋Š”์ง€ ์•„๋ƒ๊ณ  ์—ฌ์ญค๋ณด์…จ๋‹ค. ๋‹น์—ฐํžˆ Ingress ์˜ค๋ธŒ์ ํŠธ์˜ kubernetes.io/ingress.class: treafik์ด ์‚ฌ์šฉ๋˜์ง€ ์•Š์„๊นŒํ•˜๊ณ  ์–˜๊ธฐ๋ฅผ ํ•ด๋ณด์•˜๋Š”๋ฐ ์ •์ž‘ ์ปจํŠธ๋กค๋Ÿฌ Pod ์„ค์ •์—๋Š” ingress.class๋ฅผ ์„ค์ •ํ•ด์ฃผ๋Š” ๋ถ€๋ถ„์ด ์•„๋ฌด๋ฆฌ ์ฐพ์•„๋ด๋„ ์—†๋Š” ๊ฒƒ์ด๋‹ค. ๋ฌผ๋ก  Traefik ์ปจํŠธ๋กค๋Ÿฌ์˜ ingress.class ๊ธฐ๋ณธ๊ฐ’์ด โ€œtraefikโ€ ์œผ๋กœ ๋˜์žˆ๋‹ค๋Š” ๊ฝค๋‚˜ ํ•ฉ๋ฆฌ์ ์ธ ๊ฐ€์„ค์„ ์ƒ๊ฐํ•ด๋ณผ ์ˆ˜ ์žˆ์ง€๋งŒ, ๊ทธ๋ž˜๋„ ์–ด๋””์„ ๊ฐ€ ์–ด๋–ป๊ฒŒ๋“  ์ด ๊ฐ’์ด ์‚ฌ์šฉ์€ ๋˜์–ด์•ผ ํ•œ๋‹ค.
  • ๊ฒฐ๋ก ๋ถ€ํ„ฐ ์–˜๊ธฐํ•˜๋ฉด ์‹œ์Šคํ…œ ์–ด๋”˜๊ฐ€์— ํ˜„์žฌ ์‚ฌ์šฉ๊ฐ€๋Šฅํ•œ ingress ์ปจํŠธ๋กค๋Ÿฌ ๋ชฉ๋ก์ด ์žˆ๋Š”๊ฒŒ ์•„๋‹ˆ๊ณ , ๊ทธ๋ƒฅ ๊ฐ traefik ingress controller pod์€ k8s events ๋ฅผ subscribe ํ•˜๋ฉด์„œ ๊ทธ๋•Œ๊ทธ๋•Œ ๋งŒ์•ฝ ingress.class๊ฐ€ traefik์œผ๋กœ ๋˜์–ด์žˆ๋Š” ingress ์„ค์ •์ด ์žˆ์œผ๋ฉด ๊ทธ ์„ค์ •์— ๋งž๊ฒŒ ๋‚ด๋ถ€ ๋ผ์šฐํŒ… ์„ค์ •์„ ๋ณ€๊ฒฝํ•˜๊ณ , ์ž์‹ ์—๊ฒŒ ๋“ค์–ด์˜ค๋Š” ์š”์ฒญ์„ ์•Œ๋งž์€ Pod์— ์ „๋‹ฌํ•  ๋ฟ์ด๋‹ค. ์–ด๋””์„ ๊ฐ€ shared state๋Š” ๋  ์ˆ˜ ์žˆ์œผ๋ฉด ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ๊ฒƒ์ด ๋ณต์žก๋„๋ฅผ ์ค„์ธ๋‹ค๋Š” ์–˜๊ธฐ๋ฅผ ์ฝ์—ˆ๋Š”๋ฐ ๋”ฑ ๊ทธ๋Ÿฐ ์ผ€์ด์Šค์ธ ๊ฒƒ ๊ฐ™๋‹ค.
  • ์‚ฌ์‹ค ์œ„์™€ ๊ฐ™์€ ๋ฉ”๋ชจ๋ฅผ ์ฝ๋Š” ๊ฒƒ๋ณด๋‹ค ๊ทธ๋ƒฅ ์ฝ”๋“œ ์ฝ๋Š”๊ฒŒ ๋‚จ๋Š”๊ฒŒ ๋งŽ๋‹ค.

Published Oct 1, 2019

If I keep marking the dots, someday they will ๐Ÿ”—๐Ÿ”—