You've already forked prometheus-fail2ban-exporter-charts
Initial Commit
This commit is contained in:
29
templates/prometheus-fail2ban-exporter/_services.tpl
Normal file
29
templates/prometheus-fail2ban-exporter/_services.tpl
Normal file
@ -0,0 +1,29 @@
|
||||
{{/* vim: set filetype=mustache: */}}
|
||||
|
||||
{{/* annotations */}}
|
||||
|
||||
{{- define "prometheus-fail2ban-exporter.services.http.annotations" -}}
|
||||
{{ include "prometheus-fail2ban-exporter.annotations" . }}
|
||||
{{- if .Values.services.http.annotations }}
|
||||
{{ toYaml .Values.services.http.annotations }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/* labels */}}
|
||||
|
||||
{{- define "prometheus-fail2ban-exporter.services.http.labels" -}}
|
||||
{{ include "prometheus-fail2ban-exporter.labels" . }}
|
||||
{{/* Add label to select the correct service via `selector.matchLabels` of the serviceMonitor resource. */}}
|
||||
app.kubernetes.io/service-name: http
|
||||
{{- if .Values.services.http.labels }}
|
||||
{{ toYaml .Values.services.http.labels }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/* names */}}
|
||||
|
||||
{{- define "prometheus-fail2ban-exporter.services.http.name" -}}
|
||||
{{- if .Values.services.http.enabled -}}
|
||||
{{ include "prometheus-fail2ban-exporter.fullname" . }}-http
|
||||
{{- end -}}
|
||||
{{- end -}}
|
Reference in New Issue
Block a user