Search code examples
azurekuberneteskubernetes-helmprometheus-alertmanagerprometheus-operator

Helm doesn't take values YAMLs


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


Solution

  • fairly certain it should look like this:

    grafana:
      enabled: true
    alertmanager:
      enabled: true
      alertmanagerSpec:
        replicas: 2