nais / naisd

nais deployment daemon
https://nais.io
MIT License
27 stars 10 forks source link

Not respecting the prometheus fields in the nais yaml for deployment #23

Closed joakibj closed 7 years ago

joakibj commented 7 years ago

In our nais yaml:

prometheus:
  enabled: true
  path: /prometheus

But in the deployment:

$ kubectl describe deployments varseloppgave
Pod Template:
  Labels:       app=varseloppgave
  Annotations:  prometheus.io/path=/metrics
                prometheus.io/port=http
                prometheus.io/scrape=false

We expected that the pod template annotations were set accordingly to

prometheus.io/path=/prometheus
prometheus.io/port=http
prometheus.io/scrape=true