[stable/node-problem-detector] Add custom labels to daemonset (#21334)

Add the ability to use custom labels to daemonset.

Signed-off-by: Markos Chandras <markos@chandras.me>
This commit is contained in:
Markos Chandras
2020-03-10 04:21:35 -07:00
committed by GitHub
parent 33074fb7e5
commit 1aca91b209
4 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: node-problem-detector
version: "1.6.3"
version: "1.6.4"
appVersion: v0.7.0
home: https://github.com/kubernetes/node-problem-detector
description: Installs the node-problem-detector daemonset for monitoring extra attributes on nodes
+1
View File
@@ -58,6 +58,7 @@ The following table lists the configurable parameters for this chart and their d
| `tolerations` | Optional daemonset tolerations | `["effect: NoSchedule,operator: Exists"]` |
| `nodeSelector` | Optional daemonset nodeSelector | `{}` |
| `env` | Optional daemonset environment variables | `[]` |
| `labels` | Optional daemonset labels | `{}` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install` or provide a YAML file containing the values for the above parameters:
@@ -7,6 +7,9 @@ metadata:
helm.sh/chart: {{ include "node-problem-detector.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $key, $val := .Values.labels }}
{{ $key }}: {{ $val | quote }}
{{- end}}
spec:
selector:
matchLabels:
+2
View File
@@ -61,6 +61,8 @@ resources: {}
annotations: {}
labels: {}
tolerations:
- effect: NoSchedule
operator: Exists