ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Helm Charts
    Kubernetes 2019. 11. 1. 19:24

    Helm은 charts라고 불리는 packaging format을 사용한다. charts는 kubernetes resource들과 관련하여 묘사하는 파일의 집합체이다. Charts는 특정 디렉토리 트리에 배치된 파일로 생성된 다음 배포 할 버전이 지정된 아카이브로 패키지화될 수 있다. 

     

    Chart File Structure

    차트는 디렉토리 내부의 파일 모음으로 구성되며, 디렉토리 이름은 차트의 이름입니다 (버전 정보 없음). 따라서 WordPress를 설명하는 차트는 wordpress/ 디렉토리에 저장됩니다.

    CHART DEPENDENCIES

     

    helm 안에서 하나의 chart는 또 다른 여러개의 chart들과 종속 관계를 갖고있다. 이러한 종속성은 requirements.yaml 파일을 통해 동적으로 연결되거나 charts/ 디렉토리로 가져와 수동으로 관리된다.

     

    종속성을 수동으로 관리하는 것은 몇 가지 장점이 있지만 일반적으로 추천하는 방식은 requirements.yaml 파일을 사용하는 것이다.

     

    Managing Dependencies with requirements.yaml

    dependencies:
      - name:		# name of the chart you want
      - version:		# the version of the chart you want
      - repository:		# full URL to the chart repository. 
      			# Note that you must also use helm repo add to add that repo locally

    종속성 파일이 있으면 helm dependency update 명령어를 실행할 수 있으며 종속성 파일을 사용하여 지정된 모든 차트를 charts/ 디렉토리에 다운로드합니다.

     

    Chart Working Flow

    'Kubernetes' 카테고리의 다른 글

    Kubernetes TCP Load Balancer  (0) 2019.11.08
    hdfs-k8s helm deploy  (0) 2019.11.04
    Kubernetes Persistent Volume  (0) 2019.10.08
    Kubernetes GPU Container  (0) 2019.10.02
    Kubernetes 특정 Node로 Pod 배포  (0) 2019.10.02

    댓글

Designed by Tistory.