Helm doesn't take values YAMLs

12/24/2019

I’m working to install prometheus operator, I took the default helm chart and install it via the following command:

helm install po stable/prometheus-operator -n mon -f values.yaml

using this chart.

The installation was successful however it didn’t take the values from the values.yaml files, what am I doing wrong? e.g we don’t see two replicas of alert manger (minimal reproducible)

cat values.yaml

prometheus-operator:
  defaultRules:
  grafana:
    enabled: true
  alertmanager:
    alertmanagerSpec:
      replicas: 2

the values yaml is on the folder which I execute the command. I'm using Helm 3

-- Jon lib
azure
kubernetes
kubernetes-helm
prometheus-alertmanager
prometheus-operator

1 Answer

12/24/2019

fairly certain it should look like this:

grafana:
  enabled: true
alertmanager:
  enabled: true
  alertmanagerSpec:
    replicas: 2
-- 4c74356b41
Source: StackOverflow