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:
parent
c34a12b2c5
commit
e131164c42
4 changed files with 21 additions and 0 deletions
helm/prometheus
|
@ -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:
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
|
@ -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
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue