Skip to content

[kube-prometheus-stack] Installation or upgrade fails with YAML parse error #6260

@nikolic-milan

Description

@nikolic-milan

Describe the bug a clear and concise description of what the bug is.

I am installing it on my AWS EKS Kubernetes cluster with Kubernetes version 1.33. The project uses aws_cdk and the deployment is perform through Cloudformation.

The error is:
YAML parse error on kube-prometheus-stack/templates/exporters/kube-etcd/servicemonitor.yaml: error converting YAML to JSON: yaml: line 21: mapping values are not allowed in this context

The error first occurred with an older version of the chart when this fix wasn't applied - #5664
I updated to the latest version - 78.4.0 and the error persists.

On my machine I've tried using helm 3.17.x , 3.18.x and 3.19.x - but I think CloudFormation is not connected to the helm version on my machine, but I couldn't find a reference online on how it determines the helm chart of which version it uses.

What's your helm version?

3.17.x , 3.18.x and 3.19.x

What's your kubectl version?

v1.33.0

Which chart?

kube-prometheus-stack

What's the chart version?

78.4.0

What happened?

I got the fallowing error and the installation failed.
YAML parse error on kube-prometheus-stack/templates/exporters/kube-etcd/servicemonitor.yaml: error converting YAML to JSON: yaml: line 21: mapping values are not allowed in this context

What you expected to happen?

The installation to succeed.

How to reproduce it?

It should be reproducible on any of the version mention when deploying through CloudFormation.

Enter the changed values of values.yaml?

I do have quite a bit of values configured when deploying the chart, but the deployment worked before and since then I didn't change anything in the values. And none of my values are related to the Service Monitor.

Enter the command that you execute and failing/misfunctioning.

cdk deploy since it's through CF.

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions