1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 03:38:43 +00:00

prometheus: allow for custom labels

* Allows the user to specify custom labels to service, ingress and prometheus
  objects
This commit is contained in:
Aleksandar Topuzovic 2017-09-29 11:13:03 +01:00
parent c34a12b2c5
commit e131164c42
No known key found for this signature in database
GPG key ID: 8D7CDD3C562180B7
4 changed files with 21 additions and 0 deletions

View file

@ -12,6 +12,9 @@ metadata:
heritage: {{ .Release.Service }}
prometheus: {{ .Release.Name }}
release: {{ .Release.Name }}
{{- if .Values.ingress.labels }}
{{ toYaml .Values.ingress.labels | indent 4 }}
{{- end }}
name: {{ template "fullname" . }}
spec:
rules:

View file

@ -7,6 +7,9 @@ metadata:
heritage: {{ .Release.Service }}
prometheus: {{ .Release.Name }}
release: {{ .Release.Name }}
{{- if .Values.labels }}
{{ toYaml .Values.labels | indent 4 }}
{{- end }}
name: {{ .Release.Name }}
spec:
{{- if .Values.alertingEndpoints }}

View file

@ -11,6 +11,9 @@ metadata:
heritage: {{ .Release.Service }}
prometheus: {{ .Release.Name }}
release: {{ .Release.Name }}
{{- if .Values.service.labels }}
{{ toYaml .Values.service.labels | indent 4 }}
{{- end }}
name: {{ template "fullname" . }}
spec:
clusterIP: "{{ .Values.service.clusterIP }}"

View file

@ -29,6 +29,10 @@ image:
repository: quay.io/prometheus/prometheus
tag: v1.7.1
## Labels to be added to the Prometheus
##
labels: {}
ingress:
## If true, Prometheus Ingress will be created
##
@ -40,6 +44,10 @@ ingress:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
## Labels to be added to the Ingress
##
labels: {}
fqdn: ""
## TLS configuration for Prometheus Ingress
@ -115,6 +123,10 @@ service:
##
externalIPs: []
## Labels to be added to the Service
##
labels: {}
## External IP address to assign to Prometheus Service
## Only used if service.type is 'LoadBalancer' and supported by cloud provider
##