Search code examples
amazon-web-serviceskuberneteskubernetes-helmnginx-ingress

Error: file 'home/user/values.yaml' seems to be a YAML file, but expected a gzipped archive


I am trying to install Kube Prometheus Stack using helm.

I have already setup ingress, so it needs to be running behind a proxy.

For that I have updated values of the chart by using below command.

helm show values prometheus-com/kube-prometheus-stack > values.yaml

I followed this doc and changed configurations,

[server]
domain = example.com

Now I am trying to install using below command.

helm install monitoring ./values.yaml  -n monitoring

I have already created a namespace monitoring

I get below error on running above command.

Error: file '/home/user/values.yaml' seems to be a YAML file, but expected a gzipped archive

Solution

  • Your helm command should be something like this:

    $ helm install <release-name> <registry-name>/<chart-name> --values ./values.yaml  -n monitoring