Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What is going on with this article?
@yuta_vamdemic

helm3でhelm installコマンド実行時に「Error: must either provide a name or specify --generate-name」 と出る

More than 1 year has passed since last update.

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
1
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
yuta_vamdemic
Vampire

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
1
Help us understand the problem. What is going on with this article?