error validating data: [apiVersion not set, kind not set] | Helm Charts

This error occurs when you are trying to install a application in Kubernetes cluster via Helm Charts and this error may occur due to any of the following reasons mentioned below but the most common reason is due to unwanted files that are part of the templates directory but have not been mentioned in the charts. When you are trying to install, you may get an error as shown in the below screenshot

I had values.yaml as part of the templates directory once I moved it outside of the templates directory, the error went away for me when I ran Helm install command again. But that’s not the only solution for this issue.. this issue might also occur due to these reasons

    • Unwanted commented lines in YAML files
    • README file inside template directory
    • Typo in YAML files
    • Add libraries inside .helmignore

    You may also like...