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

 

$ kubectl get pod pod-name -o yaml 

์œ„ ๋ช…๋ น์–ด๋Š” ํŒŒ๋“œ์— ๋Œ€ํ•œ yaml ํŒŒ์ผ ๋‚ด์šฉ์„ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.

 

$ kubectl get pods pod-name -o yaml > pod.yaml

๋”ฐ๋ผ์„œ ์œ„์— ๋ช…๋ น์–ด๋ฅผ ํ•˜๊ฒŒ ๋˜๋ฉด ์ถ”ํ›„ ํ•ด๋‹น ํŒŒ๋“œ๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์šฉ์ดํ•ฉ๋‹ˆ๋‹ค.

profile on loading

Loading...