๋ณธ ํฌ์ŠคํŒ…์€ IBM Cloud Private Documentation์„ ์ฐธ๊ณ ํ•œ ๋‚ด์šฉ์ž…๋‹ˆ๋‹ค.

Helm ์ด๋ž€?
Helm ์€ Kubernetes์˜ ํŒจํ‚ค์ง€ ๋งค๋‹ˆ์ €๋กœ, Helm์„ ํ†ตํ•ด Kubernetes ์—์„œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ด€๋ฆฌ ์†์‰ฝ๊ฒŒ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Helm Chart๋กœ ์—ฌ๋Ÿฌ ์ปดํฌ๋„ŒํŠธ๋กœ ๋ณต์žกํ•˜๊ฒŒ ๊ตฌ์„ฑ๋œ Kubernetes ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์‰ฝ๊ฒŒ ์ •์˜(define), ์„ค์น˜(install), ์—…๊ทธ๋ ˆ์ด๋“œ(upgrade) ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ž์„ธํ•œ ์šฉ์–ด๋Š” Helm Documentation ํŽ˜์ด์ง€๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”!

Kubernetes ๊ธฐ๋ฐ˜์˜ IBM Cloud Private์€ ๋„ค์ดํ‹ฐ๋ธŒ ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ,
Helm์„ ์‚ฌ์šฉํ•ด ํŒจํ‚ค์ง€๋ฅผ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค.

IBM Cloud Private ์„ค์น˜ ํ›„ ์›น ๋Œ€์‹œ๋ณด๋“œ์—์„œ ํŒจํ‚ค์ง€๋ฅผ ๊ด€๋ฆฌํ•  ์ˆ˜๋„ ์žˆ์ง€๋งŒ Helm CLI๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

์ด๋ฒˆ ํฌ์ŠคํŒ…์—์„œ๋Š” Helm CLI ์„ค์น˜ํ•˜๋Š”๋ฐฉ๋ฒ•์„ ์•ˆ๋‚ด๋“œ๋ฆฝ๋‹ˆ๋‹ค.


** Helm CLI ์„ค์น˜ ์ „, ์•„๋ž˜ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ Kubernetes CLI๋ฅผ ์„ค์น˜ํ•˜์‹ญ์‹œ์˜ค
(Accessing your IBM Cloud Private cluster by using the kubectl CLI)

  1. Helm ์‹คํ–‰ ๋ฐ”์ด๋„ˆ๋ฆฌ ํŒŒ์ผ๋ฅผ ๋‹ค์šด๋กœ๋“œํ•ฉ๋‹ˆ๋‹ค.

    For Linuxโ„ข 64-bit, run the following command:
    docker run -t --entrypoint=/bin/cp -v /usr/local/bin:/data ibmcom/helm:v2.5.0 /helm /data/

    For Linuxโ„ข on Powerยฎ 64-bit LE, run the following command:
    docker run -t --entrypoint=/bin/cp -v /usr/local/bin:/data ibmcom/helm-ppc64le:v2.5.0 /helm /data/

  2. Helm ํ™ˆ ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ ํ›„ ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

    mkdir -p /var/lib/helm; export HELM_HOME=/var/lib/helm

  3. Helm CLI๋ฅผ ์ดˆ๊ธฐํ™” ํ•ฉ๋‹ˆ๋‹ค.
    1. ์„ค์น˜ ํ™˜๊ฒฝ์ด ์ธํ„ฐ๋„ท์— ์—ฐ๊ฒฐ๋˜์–ด ์žˆ๊ณ , stable Helm repo๋ฅผ ๋‹ค์šด ๋ฐ›์œผ๋ ค๋ฉด ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
      helm init --client-only
    2. ์ธํ„ฐ๋„ท์— ์—ฐ๊ฒฐ๋˜์–ด ์žˆ์ง€ ์•Š๋‹ค๋ฉด ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
      helm init --client-only --skip-refresh
  4. Helm CLI๊ฐ€ ์ดˆ๊ธฐํ™” ๋˜์—ˆ์Œ์„ ํ™•์ธํ•˜๊ณ  ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
    helm version

    ์•„๋ž˜์™€ ์œ ์‚ฌํ•œ ์ถœ๋ ฅ์ด ๋‚˜์˜ค๋ฉด ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋œ ๊ฒƒ์œผ๋กœ ๋ณด์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.
    Client: &version.Version{SemVer:"v2.5.0", GitCommit:"012cb0ac1a1b2f888144ef5a67b8dab6c2d45be6", GitTreeState:"clean"}

    Server: &version.Version{SemVer:"v2.5.0", GitCommit:"012cb0ac1a1b2f888144ef5a67b8dab6c2d45be6", GitTreeState:"clean"}

  5. ์ž, ์ด์ œ ์„ค์น˜ ๊ฐ€๋Šฅํ•œ ํŒจํ‚ค์ง€ ๋ฆฌ์ŠคํŠธ๋ฅผ ํ™•์ธํ•˜๊ณ  ์˜ˆ์ œ๋กœ ์›Œ๋“œํ”„๋ ˆ์Šค ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.
    1. Helm repository๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ์‹œ์— ๋‚˜์˜จ ๋งํฌ ์™ธ์— ์–ด๋–ค Helm repository์ด๋“  ์ถ”๊ฐ€ํ•˜์—ฌ ๋‹ค์–‘ํ•œ ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฒˆ ์˜ˆ์ œ์—์„œ๋Š” Kubernetes Incubator repository๋ฅผ ์ถ”๊ฐ€ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค. helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
    2. ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ํŒจํ‚ค์ง€๋ฅผ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.
      helm search -l
    3. ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.
      helm install --name=package_name stable/package_in_repo

      ์ด ๋ช…๋ น์–ด์—์„œ package_name์€ ์„ค์น˜๋  ํŒจํ‚ค์ง€์˜ ์ƒˆ๋กœ์šด ์ด๋ฆ„์ด๋ฉฐ, package_in_repo๋Š” ํŒจํ‚ค์ง€ ๋ฆฌ์ŠคํŠธ์—์„œ ํ™•์ธ๋˜๋Š”, ์„ค์น˜ ๊ฐ€๋Šฅํ•œ ํŒจํ‚ค์ง€์˜ ์ด๋ฆ„์ž…๋‹ˆ๋‹ค. ์˜ˆ์‹œ๋กœ, WordPress ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•œ๋‹ค๊ณ  ํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์€ ๋ช…๋ น์–ด๊ฐ€ ๋ฉ๋‹ˆ๋‹ค.
      helm install --name=my-wordpress stable/wordpress

    4. ์ด์ œ WordPress ํŒจํ‚ค์ง€๊ฐ€ ์„ค์น˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์„ค์น˜๋œ ํŒจํ‚ค์ง€ ๋ฆฌ์ŠคํŠธ๋ฅผ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.
      helm list
      ๋‹ค์Œ ํ™”๋ฉด๊ณผ ์œ ์‚ฌํ•œ ์ถœ๋ ฅ ํ™”๋ฉด์ด ๋‚˜์˜ค๋Š” ๊ฒƒ์„ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.
      NAME REVISION UPDATED STATUS CHART NAMESPACE
      my-wordpress 1 Wed Jun 28 22:15:13 2017 DEPLOYED wordpress-0.6.5 default
    5. ์„ค์น˜๋œ ํŒจํ‚ค์ง€๋ฅผ ์‚ญ์ œ (remove)ํ•˜๋ ค๋ฉด, ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
      helm delete package_name --purge
    6. ์˜ˆ๋ฅผ ๋“ค์–ด ์•ž์„œ ์„ค์น˜ํ•œ WordPress ํŒจํ‚ค์ง€๋ฅผ ์‚ญ์ œํ•˜๋Š” ๊ฒฝ์šฐ ์•„๋ž˜์™€ ๊ฐ™์€ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
      helm delete package_name --purge

์ถ”๊ฐ€๋กœ IBM Cloud Private ํด๋Ÿฌ์Šคํ„ฐ์— ์ปค์Šคํ…€ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ํŒจํ‚ค์ง•ํ•˜์—ฌ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ์•„๋ž˜ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”!
Adding custom applications to IBM Cloud Private

ํ† ๋ก  ์ฐธ๊ฐ€

์ด๋ฉ”์ผ์€ ๊ณต๊ฐœ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ํ•„์ˆ˜ ์ž…๋ ฅ์ฐฝ์€ * ๋กœ ํ‘œ์‹œ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.