sighupio / fury-kubernetes-monitoring

Kubernetes Fury Distribution Monitoring core module: Monitor the status of your Kubernetes Cluster and its applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] - Prometheus service is rendered incorrectly with kustomize

nutellinoit opened this issue · comments

Since we are using common labels, the prometheus generated instance from prometheus operator is without required labels to be selected from the prometheus-k8s service

The same is happening also with alertmanager main svc

I'm not sure I completely understand.

How does using commonLabels in the kustomization.yaml file affect what labels have the Prometheus pods that the operator creates?

To answer my question the issue is that using commonLabels also affects the selector. So, then the selector expects the commonLabels that are not added by the Operator, resulting in the service without endpoints.

Yes, exactly 👍