added service annotations with the default value (#8086)

Signed-off-by: Denis Baryshev <dennybaa@gmail.com>
This commit is contained in:
Denis Baryshev
2018-10-02 13:14:55 -07:00
committed by k8s-ci-robot
parent a99af4da15
commit 57c8fb1c51
5 changed files with 12 additions and 5 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: "0.15.2"
appVersion: "0.16.0"
description: A Helm chart for prometheus node-exporter
name: prometheus-node-exporter
version: 0.3.0
version: 0.4.0
home: https://github.com/prometheus/node_exporter/
sources:
- https://github.com/prometheus/node_exporter/
+2 -1
View File
@@ -39,7 +39,7 @@ The following table lists the configurable parameters of the Node Exporter chart
| Parameter | Description | Default | |
| --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- | --- |
| `image.repository` | Image repository | `quay.io/prometheus/node-exporter` | |
| `image.tag` | Image tag | `v0.15.2` | |
| `image.tag` | Image tag | `v0.16.0` | |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` | |
| `extraArgs` | Additional container arguments | `[]` | |
| `podLabels` | Additional labels to be added to pods | {} | |
@@ -49,6 +49,7 @@ The following table lists the configurable parameters of the Node Exporter chart
| `service.type` | Service type | `ClusterIP` | |
| `service.port` | The service port | `9100` | |
| `service.targetPort` | The target port of the container | `9100` | |
| `service.annotations` | Kubernetes service annotations | `{prometheus.io/scrape: "true"}` |
| `serviceAccount.create` | Specifies whether a service account should be created. | `true` | |
| `serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the fullname template | | |
| `serviceAccount.imagePullSecrets` | Specify image pull secrets | `[]` | |
@@ -52,4 +52,4 @@ Create the name of the service account to use
{{- else -}}
{{ default "default" .Values.serviceAccount.name }}
{{- end -}}
{{- end -}}
{{- end -}}
@@ -2,6 +2,10 @@ apiVersion: v1
kind: Service
metadata:
name: {{ template "prometheus-node-exporter.fullname" . }}
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
labels: {{ include "prometheus-node-exporter.labels" . | indent 4 }}
spec:
type: {{ .Values.service.type }}
+3 -1
View File
@@ -3,13 +3,15 @@
# Declare variables to be passed into your templates.
image:
repository: quay.io/prometheus/node-exporter
tag: v0.15.2
tag: v0.16.0
pullPolicy: IfNotPresent
service:
type: ClusterIP
port: 9100
targetPort: 9100
annotations:
prometheus.io/scrape: "true"
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious