Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Helm3 - validation: chart.metadata is required

I'm in the learning phase of Helm. I'm trying to create helm chart with simple pod definition file. But it's failed with the below error.

Note : If i'm trying to run this command helm install --values=ghost-values.yaml stable/ghost --generate-name. It works fine. Basically this download and install the chart from remote(If i'm not wrong). But I don't know why my local helm chart that I created not working.

➜  Helm $ helm version --short
v3.2.0+ge11b7ce
➜  Helm $

Folder path ->

➜  Helm $ ls guestbook
Chart.yml templates
➜  Helm $

Chart.yml file

➜  guestbook $ cat Chart.yml
apiVersion: v2
name: guestbook
appVersion: "1.0"
description: A Helm chart for Guestbook 1.0
version: 0.1.0
type: application
➜  guestbook $

template file

➜  guestbook $ cat templates/web.yml
apiVersion: apps/v1
kind: Deployment
metadata:
  creationTimestamp: null
  labels:
    run: pod
  name: pod
spec:
  replicas: 1
  selector:
    matchLabels:
      run: pod
  strategy: {}
  template:
    metadata:
      creationTimestamp: null
      labels:
        run: pod
    spec:
      containers:
      - args:
        - webserver
        image: nginx
        name: pod
        resources: {}
status: {}
➜  guestbook $

Error:

➜  Helm $ helm install demo-guestbook guestbook
Error: validation: chart.metadata is required
➜  Helm $
like image 759
KMG Avatar asked Apr 08 '26 11:04

KMG


1 Answers

Rename Chart.yml to Chart.yaml, then run again. Here it expects the name should be Chart.yaml

like image 54
hoque Avatar answered Apr 11 '26 00:04

hoque



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!