songining

NodePort : ์™ธ๋ถ€์—์„œ ์ ‘์†ํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉํ•˜๋Š” port 

Port : Cluster ๋‚ด๋ถ€์—์„œ ์‚ฌ์šฉํ•  Service ๊ฐ์ฒด์˜ ํฌํŠธ

TargetPort : Service๊ฐ์ฒด๋กœ ์ „๋‹ฌ๋œ ์š”์ฒญ์„ Pod(deployment)๋กœ ์ „๋‹ฌํ• ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ํฌํŠธ(์ฆ‰ pod์˜ port?์ธ๋“ฏ) 

 

์ฆ‰, HTTP -> NodePort -> Port -> TargetPort

 

์™ธ๋ถ€์—์„œ ์ ‘๊ทผํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” external ip:port ๋ฅผ ์ž…๋ ฅํ•ด์•ผํ•จ 

 

+) service 

- Cluster ip 

- NodePort 

- LoadBalancer

 

๋ธŒ๋ผ์šฐ์ €๊ฐ€ LoadBalancer์— ์š”์ฒญ ๋ณด๋‚ด๋ฉด ์•Œ์•„์„œ ์‚ด์•„์žˆ๋Š” Node ์— ์ ‘๊ทผ?? ํ•˜๋Š”๋“ฏ 

 

[์ถœ์ฒ˜]

https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=freepsw&logNo=221910012471