[bitnami/node-exporter] minor updates

This commit is contained in:
Sameer Naik
2019-12-11 17:55:06 +05:30
parent 3dd7c99b6b
commit bc1ef460ae
3 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 0.18.1
description: Prometheus exporter for hardware and OS metrics exposed by UNIX kernels, with pluggable metric collectors.
name: node-exporter
version: 0.1.0
version: 0.1.1
keywords:
- prometheus
- node-exporter
+8 -8
View File
@@ -83,6 +83,14 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{- end -}}
{{/*
matchLabels
*/}}
{{- define "node-exporter.matchLabels" -}}
app.kubernetes.io/name: {{ include "node-exporter.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
{{/*
Create the name of the service account to use
*/}}
@@ -94,14 +102,6 @@ Create the name of the service account to use
{{- end -}}
{{- end -}}
{{/*
matchLabels
*/}}
{{- define "node-exporter.matchLabels" -}}
app.kubernetes.io/name: {{ include "node-exporter.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
{{/*
Return the proper Docker Image Registry Secret Names for Node Exporter image
*/}}
@@ -30,5 +30,7 @@ spec:
targetPort: metrics
{{- if and .Values.service.nodePort (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) }}
nodePort: {{ .Values.service.nodePort }}
{{- else if eq .Values.service.type "ClusterIP" }}
nodePort: null
{{- end }}
selector: {{- include "node-exporter.matchLabels" . | nindent 4 }}