Skip to main content

Helm


설치

curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash

Repository

helm repo add <repositoryName> <URL> [flags]

Ex) helm repo add stable https://charts.helm.sh/stable

helm repo list [flags]
helm search repo <keyword> [flags]
  • -l, --versions: 여러 버전을 표시합니다.
helm repo update [repositoryName1 [repositoryName2 ...]] [flags]

Chart

Creating Chart

helm create <chartName> [flags]
<chartName>/
├── Chart.yaml
├── LICENSE # optional
├── README.md # optional
├── values.yaml
├── values.schema.json # optional
├── charts/
├── crds/ # optional
├── templates/
│ ├── NOTES.txt # optional
│ ├── _helpers.tpl # optional
│ └── ...
└──

Templating Chart

helm template <releaseName> <repositoryName/chartName|chartPath> [flags]

Packaging Chart

helm package <chartPath> [flags]
helm pull <repositoryName/chartName> [flags]

Installation

helm show values <repositoryName/chartName|chartPath> [flags]
helm install <releaseName> <repositoryName/chartName|chartPath> [flags]
info

helm upgrade <releaseName> <repositoryName/chartName|chartPath> --install [flags] 을 사용하면, 설치되어 있지 않은 경우 설치하고, 설치되어 있는 경우 업그레이드합니다.

  • -f <path>: 오버라이드 할 YAML 설정 파일
  • --set <name>=<value>: 오버라이드 할 설정
helm list [flags]
  • 설치된 릴리즈의 NAME, NAMESPACE, REVISION, UPDATED, STATUS, CHART, APP VERSION 표시
  • -A | --all-namespaces
helm status <releaseName> [flags]
helm test <releaseName> [flags]

Management

helm upgrade <releaseName> <repositoryName/chartName|chartPath> [flags]
  • --install: 설치가 안되어 있으면 설치합니다.
helm get values <releaseName> [flags]
helm get manifest <releaseName> [flags]
helm history <releaseName> [flags]
helm rollback <releaseName> <revision> [flags]

Uninstallation

helm uninstall <releaseName> [flags]

Subcharts

<chartName>/
├── charts/
│ ├── <subchartName>/
│ │ ├── Chart.yaml
│ │ ├── LICENSE # optional
│ │ ├── README.md # optional
│ │ ├── values.yaml
│ │ ├── values.schema.json # optional
│ │ ├── charts/
│ │ ├── crds/ # optional
│ │ ├── templates/
│ │ │ ├── NOTES.txt # optional
│ │ │ ├── _helpers.tpl # optional
│ │ │ └── ...
│ │ └──
│ └── ...
└── ...
<chartName>/Chart.yaml
dependencies:
- name: <subchartName>
version: <subchartVersion>
condition: <subchartName>.enabled
<chartName>/values.yaml
<subchartName>:
enabled: true
# subchart values