Infra/MLops
[helm]helm 사용하기 _1
뚜둔뚜둔
2022. 3. 2. 17:56
helm
차트는 쿠버네티스의 리소스 yaml 파일을 1. 탬플릿으로 만들고, 2.메타정보파일 등을 압축한 파일
# 버전 확인 :
helm version
# 자동 완성:
helm completion
# helm chart Repository :
helm repo add [name] [url]
# 배포관리:
helm install [name] [chart] [flags]
helm list
helm status
helm uninstall
# zldnjem wkehd dhkstjd rlsmd
source < (helm completion bash)
# linux: 일때 항상 적용되게 하는 방법
helm completion bash > /etc/bash_completion.d/helm
chart 구조 :
1. Mandatory
- template ( 실제 k8s로 배포한 deployment,service 에 관련된 파일 : 변수들이 많음 )
- deployment.yaml service.yaml
- values.yaml ( 변수들을 어떻게 설정해야하는지 있음)
- chart.yaml (chart 에 대한 정보 )
- README.md
2. Optional
use case:
- Deploy Airflow on Kubernetes in localtp make tests
- Deploy and configure Airflow a Kubernetes environment quickly
- Easy to implement awesome features such as KEDA or CeleryKubernetesExecutor
Helm chart 구성 전 준비 되어야 할 것
- kunectl
- helm
- docker
- kinD
반응형