<p>helm ์„ค์น˜ / ์—…๊ทธ๋ ˆ์ด๋“œ๋Š” ์„ค์ •๋œ ํ”Œ๋ž˜๊ทธ์—์„œ ์‰ผํ‘œ๋ฅผ ์ง€์›ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.</p>

์— ๋งŒ๋“  2017๋…„ 09์›” 20์ผ  ยท  4์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: helm/helm

helm cli๋Š” ์„ค์น˜ ๋˜๋Š” ์—…๊ทธ๋ ˆ์ด๋“œ๋ฅผ ์œ„ํ•ด ์„ค์ •๋œ ํ”Œ๋ž˜๊ทธ์— ์‰ผํ‘œ๊ฐ€ ํฌํ•จ ๋œ ๊ฐ’์„ ์ง€์›ํ•˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

$ helm install --set greeting='hello, world' .
Error: failed parsing --set data: key " world" has no value

ํŒŒ์„œ๊ฐ€ ๊ฐ’์—์„œ ์‰ผํ‘œ๋ฅผ ์ฐพ์œผ๋ฉด ์ถ”๊ฐ€ ํ‚ค๋ฅผ ์ฐพ์œผ๋ ค๊ณ ํ•˜๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๋ช‡ ๊ฐ€์ง€ ์ธ์šฉ ๋˜๋Š” ์ด์Šค์ผ€์ดํ”„ ์ „๋žต์„ ์‹œ๋„ํ–ˆ์ง€๋งŒ ๋ชจ๋‘ ๋™์ผํ•œ ๋ฌธ์ œ๊ฐ€์žˆ๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

$ helm install --set greeting="hello, world" .
Error: failed parsing --set data: key " world" has no value
$ helm install --set "greeting=hello, world" .
Error: failed parsing --set data: key " world" has no value
$ helm install --set greeting=hello,\ world .
Error: failed parsing --set data: key " world" has no value

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ set ํ”Œ๋ž˜๊ทธ ๋Œ€์‹  ๊ฐ’ ํŒŒ์ผ์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด์ง€๋งŒ ๊ตฌ์„ฑ ํŒŒ์ผ์„ configmap์œผ๋กœ ์ „๋‹ฌํ•˜๋Š” ์‚ฌ์šฉ ์‚ฌ๋ก€์˜ ๊ฒฝ์šฐ ๊ตฌ์„ฑ ํŒŒ์ผ์„ ๊ฐœ๋ณ„์ ์œผ๋กœ ๊ด€๋ฆฌํ•˜๊ณ ์ด๋ฅผ ์ €์žฅํ•˜๋Š” ๊ฒƒ๋ณด๋‹ค ์„ธํŠธ ํ”Œ๋ž˜๊ทธ๋กœ ๋ถ„๋ฅ˜ํ•˜๋Š” ๊ฒƒ์ด ๋” ์‰ฝ๊ณ  ๊น”๋”ํ•ฉ๋‹ˆ๋‹ค. yaml ๋ž˜ํผ ๋˜๋Š” ์ฆ‰์‹œ ํ•ด๋‹น ๋ž˜ํผ๋ฅผ ๊ตฌ์„ฑํ•ฉ๋‹ˆ๋‹ค.

questiosupport

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

\, ์ž˜ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

><> helm template chart/draftd/ --set image.tag="hello\, world" | grep hello
        image: "microsoft/draft:hello, world"

๋ชจ๋“  4 ๋Œ“๊ธ€

\, ์ž˜ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

><> helm template chart/draftd/ --set image.tag="hello\, world" | grep hello
        image: "microsoft/draft:hello, world"

์ด๊ฒƒ์€ https://docs.helm.sh/using_helm/#the -format-and-limitations-of-set์˜ ์„ค๋ช…์„œ์— ๋‚˜์™€ ์žˆ์œผ๋ฏ€๋กœ ํ•ด๊ฒฐ ๋œ๋Œ€๋กœ ๋‹ซ๊ฒ ์Šต๋‹ˆ๋‹ค. ํ•ด๋‹น ์ˆ˜์ • ์‚ฌํ•ญ์ด ์ž‘๋™ํ•˜์ง€ ์•Š์œผ๋ฉด ๋‹ค์‹œ์—ฌ์‹ญ์‹œ์˜ค. ๊ฐ์‚ฌ!

ํ , ์‰ผํ‘œ๋ฅผ ์ด์Šค์ผ€์ดํ”„ ํ•ด๋ณด๊ฒ ๋‹ค๊ณ  ๋งน์„ธ ํ•  ์ˆ˜ ์žˆ์—ˆ์ง€๋งŒ ๋ฒ„์ „ 2.4.0์œผ๋กœ ๋‹ค์‹œ ํ™•์ธํ–ˆ๊ณ  ๋ชจ๋‘์—์„œ ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค. ๋‚˜๋Š” ๋ถ„๋ช…ํžˆ ์ฐฉ๊ฐํ–ˆ๋‹ค.

๋‚ด๊ฐ€ ํ•œ ๊ฒƒ์ฒ˜๋Ÿผ Google์„ ํ†ตํ•ด ๋‹ค๋ฅธ ์‚ฌ๋žŒ์ด์ด ๋ฌธ์ œ๋ฅผ ๋ฐœ๊ฒฌํ•˜๋ฉด Helm 2์˜ --set ๋ฌธ์„œ์— ๋Œ€ํ•œ ์—…๋ฐ์ดํŠธ ๋œ ๋งํฌ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค. https://v2.helm.sh/docs/using_helm/#the -format-and -์„ค์ •์˜ ํ•œ๊ณ„

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰