mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
allow mounting configmaps (#15356)
Signed-off-by: Arno Uhlig <arno.uhlig@sap.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
f5f2db3abe
commit
e2e296d7a1
@@ -2,7 +2,7 @@ apiVersion: v1
|
||||
appVersion: "0.18.0"
|
||||
description: A Helm chart for prometheus node-exporter
|
||||
name: prometheus-node-exporter
|
||||
version: 1.5.2
|
||||
version: 1.6.0
|
||||
home: https://github.com/prometheus/node_exporter/
|
||||
sources:
|
||||
- https://github.com/prometheus/node_exporter/
|
||||
|
||||
@@ -66,6 +66,7 @@ The following table lists the configurable parameters of the Node Exporter chart
|
||||
| `prometheus.monitor.additionalLabels` | Additional labels that can be used so ServiceMonitor will be discovered by Prometheus | `{}` | |
|
||||
| `prometheus.monitor.namespace` | namespace where servicemonitor resource should be created | `the same namespace as prometheus node exporter` | |
|
||||
| `prometheus.monitor.scrapeTimeout` | Timeout after which the scrape is ended | `10s` | |
|
||||
| `configmaps` | Allow mounting additional configmaps. | `{}` | |
|
||||
|
||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||
|
||||
|
||||
@@ -68,6 +68,12 @@ spec:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.configmaps }}
|
||||
{{- range $_, $mount := .Values.configmaps }}
|
||||
- name: {{ $mount.name }}
|
||||
mountPath: {{ $mount.mountPath }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
hostNetwork: {{ .Values.hostNetwork }}
|
||||
hostPID: true
|
||||
{{- if .Values.affinity }}
|
||||
@@ -96,3 +102,10 @@ spec:
|
||||
path: {{ $mount.hostPath }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.configmaps }}
|
||||
{{- range $_, $mount := .Values.configmaps }}
|
||||
- name: {{ $mount.name }}
|
||||
configMap:
|
||||
name: {{ $mount.name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -99,3 +99,9 @@ extraHostVolumeMounts: {}
|
||||
# mountPath: <mountPath>
|
||||
# readOnly: true|false
|
||||
# mountPropagation: None|HostToContainer|Bidirectional
|
||||
|
||||
## Additional configmaps to be mounted.
|
||||
##
|
||||
configmaps: {}
|
||||
# - name: <configMapName>
|
||||
# mountPath: <mountPath>
|
||||
|
||||
Reference in New Issue
Block a user