株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

chartsディレクトリの中にチャートファイルをそのまま入れているとなぜかエラーになる。
理由はよく分からないけれど、パッケージングすると動くみたいです。

helmのバージョン

~/D/helm ❯❯❯ helm version                                                                  ✘ 1
version.BuildInfo{Version:"v3.1.0", GitCommit:"b29d20baf09943e134c2fa5e1e1cab3bf93315fa", GitTreeState:"clean", GoVersion:"go1.13.8"}

エラーメッセージ

~/D/helm ❯❯❯ helm install mychart
Error: must either provide a name or specify --generate-name

構成

~/D/helm ❯❯❯ tree mychart
mychart
├── Chart.yaml
├── charts
│   ├── charts
│   ├── templates
│   │   └── configmap.yaml
│   └── values.yaml
├── templates
│   └── configmap.yaml
└── values.yaml

対処手順

chartsディレクトリ内のチャートをパッケージングする

~/D/helm ❯❯❯ cd mychart
~/D/h/mychart ❯❯❯ helm package charts                                                    
Successfully packaged chart and saved it to: /Users/yuta/Desktop/helm/mychart/mychart-0.1.0.tgz

構成

次のような構成にする

~/D/helm ❯❯❯ tree mychart
mychart
├── Chart.yaml
├── charts
│   └── mychart-0.1.0.tgz
├── templates
│   └── configmap.yaml
└── values.yaml
helm install mychart --generate-name

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)