Helm
Kubernetes에서 사용하는 패키지 매니저
- Linux: apt, yum
- Python: pip, conda
- Node.js: npm
리소스들의 모음(패키지)을 Helm에서는 "차트(Chart)" 라고 부름
Helm chart는 Kubernetes 애플리케이션을 정의, 배포, 유지 관리로 사용되는 여러 가지 Kubernetes 리소스 정의를 포함하는 패키지이다.
Installing Helm
## 스크립트 방식
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
## windows
## choco 이용
choco install kubernetes-helm
## scoop 이용
scoop install helm
## Apt 이용 (Debian/Ubuntu)
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
sudo apt-get install apt-transport-https --yes
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm
## dnf/yum 이용 (fedora)
sudo dnf install helm
## Snap 이용
sudo snap install helm --classic
## pkg 이용 (FreeBSD)
pkg install helm
using helm
## hub에서 wordpress 차트 검색
helm search hub wordpress
hub : https://artifacthub.io/
예제) bitnami 에서 mysql 설치
Bitnami: 다양한 오픈 소스 프로젝트를 패키징하여 사용자가 쉽게 설치하고 사용할 수 있도록 만드는 소프트웨어 패키지 및 설치 라이브러리
## bitnami repo add
helm repo add bitnami https://charts.bitnami.com/bitnami
## bitnami repo 검색
helm search repo bitnami
## 최신 차트 목록 업데이트
helm repo update
## bitnami/mysql 설치 --generate-name(자동으로 고유한 이름을 생성)
helm install bitnami/mysql --generate-name
## chart 설치 목록 확인
helm list
## chart 설치된 차트 삭제 --keep-history(히스토리 유지)
helm uninstall mysql-1612624192
helm uninstall mysql-1612624192 --keep-history
## chart 상태 확인
helm status mysql-1612624192
## help
helm get -h
자동완성
## 일회용
source <(helm completion bash)
## 계속
helm completion bash > /etc/bash_completion.d/helm
'Infra > Kubernetes' 카테고리의 다른 글
쿠버네티스 01-01 Pod (0) | 2023.09.06 |
---|---|
containerd, kubernetes 설치하기 feat. Arm , Troubleshooting (0) | 2023.09.05 |
WARNING: Kubernetes configuration admin.conf (0) | 2023.09.04 |
Kubernetes Dashboard with helm (0) | 2023.09.04 |
CKA 취득 (0) | 2023.04.16 |