helm - deptno/deptno.github.io GitHub Wiki
helm
์ผ์ข ์ kubernetes resource ์ ์๋ฅผ ์ ์ธํ๊ณ ์ด๋ฅผ ๋ฐฐํฌํ๋ ๊ฐ๋
brew install helm
helm repo list # ๋ฑ๋ก๋ repo ๋ฆฌ์คํ
helm repo add [repo-name] [repo-url]
helm repo update # ์ฐจํธ ๋ฆฌ์คํธ ์
๋ฐ์ดํธ
helm search repo [repo-name] # chart ๊ฒ์
helm install [name] -f [values.yaml]
helm ls # ์ค์น๋ ์ฐจํธ ๋ฆฌ์คํธ
helm upgrade CHART_NAME CHART_PATH [-f values.yaml] [--debug] [--dry-run] [--namespace NAMESPACE] [--create-namespace]
helm upgrade -i [chart-name] . -f [values.yaml] # ์์ผ๋ฉด ์ธ์คํจ, ์ด๊ฑธ ์ฃผ๋ก ์ฐ๊ฒ๋จ
helm upgrade --install [chart-name] path/to/chart [-f values.yaml]
helm upgrade --install [chart-name] path/to/chart [-f values.yaml]
helm delete [chart-name] # ์ฐจํธ ์ญ์
helm get manifest [chart-name] # ์ค์น ์ ๋ณด
option
-
debug - verbose ๋ก๊ทธ
-
dry-run - ํ ์คํธ
-
example
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo search prometheus-community
helm pull prometheus-community/kube-prometheus-stack --untar
# git add kube-prometheus-stack -m "add helm chart: kube-prometheus-stack"
# vim kube-prometheus-stack/values.yaml
helm upgrade prometheus kube-prometheus-stack --install --create-namespace -n prometheus [-f values.yaml]