๋กœ์ผ“๐Ÿพ
article thumbnail
์ด ๊ธ€์€ ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค ๊ณต๋ถ€ํ•œ ํ”์ ์„ ๋‚จ๊ธฐ๊ธฐ ์œ„ํ•œ ๊ธ€์ž…๋‹ˆ๋‹ค.

 

์ฟ ๋ฒ„๋„คํ‹ฐ์Šค์—์„œ ํŒŒ๋“œ ์ž์ฒด์— ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด ํŒŒ๋“œ๋ฅผ ์ž๋™ ๋ณต๊ตฌํ•ด์„œ ํŒŒ๋“œ๊ฐ€ ํ•ญ์ƒ ๋™์ž‘ํ•˜๋„๋ก ๋ณด์žฅํ•˜๋Š” ๊ธฐ๋Šฅ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

 

deployment๋กœ ์ƒ์„ฑํ•œ ์˜ค๋ธŒ์ ํŠธ์™€ ๊ทธ๋ƒฅ ํŒŒ๋“œ ์˜ค๋ธŒ์ ํŠธ 2๊ฐœ๊ฐ€ ์žˆ๊ณ , ์ด๋ฅผ ์‚ญ์ œํ–ˆ๋‹ค๊ณ  ํ–ˆ์„ ์‹œ kubectl get pods ๋ช…๋ น์–ด๋กœ์˜ค๋ธŒ์ ํŠธ๋“ค์„ ํ™•์ธํ•ด๋ณด๋ฉด deployment ์˜ค๋ธŒ์ ํŠธ๋งŒ ์‚ด์•„์žˆ์Šต๋‹ˆ๋‹ค.

 

deployment ์•ˆ์— ์žˆ๋Š” replicat์…‹์— ์˜ํ•ด์„œ ํŒŒ๋“œ์˜ ๊ฐฏ์ˆ˜๋ฅผ ์œ ์ง€ํ•˜๋ ค๊ณ  ํ•˜๊ธฐ ๋•Œ๋ฌธ์— deployment๋กœ ์ƒ์„ฑํ•œ ํŒŒ๋“œ๋“ค์€ ์‚ญ์ œ๋˜๋„ ๋‹ค์‹œ ์ƒ์„ฑ์ด ๋ฉ๋‹ˆ๋‹ค. age๋ฅผ ๋ด๋„ ๋‹ค์‹œ ์ƒ์„ฑ๋œ๊ฑธ ์•Œ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

ํ•˜์ง€๋งŒ ๊ทธ๋ƒฅ ํŒŒ๋“œ๋Š” ์ด๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” ์ปจํŠธ๋กค๋Ÿฌ๊ฐ€ ์—†๊ธฐ ๋•Œ๋ฌธ์— ์ž๋™๋ณต๊ตฌ๊ฐ€ ๋ณด์žฅ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

 

*์ฐธ๊ณ  : ์ปจํŠธ๋กค๋Ÿฌ๋Š” ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค ํด๋Ÿฌ์Šคํ„ฐ์˜ ๊ตฌ์„ฑ์š”์†Œ์ค‘ ํ•˜๋‚˜๋กœ, ํŒŒ๋“œ(์˜ค๋ธŒ์ ํŠธ ํฌํ•จ)๋ฅผ ๊ฐ์‹œํ•ฉ๋‹ˆ๋‹ค.

 

*์ฐธ๊ณ  : ๋””ํ”Œ๋กœ์ด๋จผํŠธ์— ์†ํ•œ ํŒŒ๋“œ๋Š” ์ƒ์œ„ ๋””ํ”Œ๋กœ์ด๋จผํŠธ๋ฅผ ์‚ญ์ œํ•ด์•ผ ์‚ญ์ œ ๋ฉ๋‹ˆ๋‹ค.

$ kubectl delete deployment pods-name
profile on loading

Loading...