본문 바로가기
빅데이터/kubernetes

[helm] Helm chart에서 Error: create: failed to create: Request entity too large: limit is 3145728 오류 처리

by hs_seo 2023. 5. 30.

Helm 차트를 이용해서 k8s 클러스터에 자원을 설치하려고 할 때 이 오류가 발생하는 경우가 있습니다. 이는 차트를 실행하는 기본 위치에 존재하는 파일 사이즈가 3MB 를 넘어서면 발생합니다.

 

아래와 같이 실행할 경우 현재 경로에 파일이 3MB 를 넘어서는 경우 오류가 발생합니다.

이럴 때는 용량이 큰 파일을 삭제하거나, .helmignore 파일에 추가하면 됩니다.

 

# ./ 위치의 Chart.yaml 파일을 읽어서 mysql 차트 설치
helm upgrade --install --force \
mysql-local \
. \
--namespace mysql-user \
--values ./user-values.yaml

다음과 같이 .helmignore 파일을 생성하고 차트 설치에 필요하지 않은 파일을 추가하면 됩니다.

 

관련 내용은 다음의 사이트를 참고하면 됩니다.

https://helm.sh/docs/chart_template_guide/helm_ignore_file/

 

The .helmignore file

The `.helmignore` file is used to specify files you don't want to include in your helm chart.

helm.sh

 

반응형