mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/prometheus] Add extraHostPathMounts config (#862)
* [stable/prometheus] Add extraHostPathMounts config * Add nodeExporter.extraHostPathMounts to prometheus * Add server.extraHostPathMounts to prometheus * Tweak indentation
This commit is contained in:
committed by
Michael Goodness
parent
e632fc6273
commit
de9232b7fa
@@ -101,6 +101,7 @@ Parameter | Description | Default
|
||||
`nodeExporter.image.tag` | node-exporter container image tag | `v0.13.0`
|
||||
`nodeExporter.image.pullPolicy` | node-exporter container image pull policy | `IfNotPresent`
|
||||
`nodeExporter.extraArgs` | Additional node-exporter container arguments | `{}`
|
||||
`nodeExporter.extraHostPathMounts` | Additional node-exporter hostPath mounts | `[]`
|
||||
`nodeExporter.nodeSelector` | node labels for node-exporter pod assignment | `{}`
|
||||
`nodeExporter.podAnnotations` | annotations to be added to node-exporter pods | `{}`
|
||||
`nodeExporter.resources` | node-exporter resource requests and limits (YAML) | `{}`
|
||||
@@ -117,6 +118,7 @@ Parameter | Description | Default
|
||||
`server.image.pullPolicy` | Prometheus server container image pull policy | `IfNotPresent`
|
||||
`server.alertmanagerURL` | (optional) alertmanager URL; only used if alertmanager.enabled = false | `""`
|
||||
`server.extraArgs` | Additional Prometheus server container arguments | `{}`
|
||||
`server.extraHostPathMounts` | Additional Prometheus server hostPath mounts | `[]`
|
||||
`server.ingress.enabled` | If true, Prometheus server Ingress will be created | `false`
|
||||
`server.ingress.annotations` | Prometheus server Ingress annotations | `[]`
|
||||
`server.ingress.hosts` | Prometheus server Ingress hostnames | `[]`
|
||||
|
||||
@@ -44,6 +44,11 @@ spec:
|
||||
- name: sys
|
||||
mountPath: /host/sys
|
||||
readOnly: true
|
||||
{{- range .Values.nodeExporter.extraHostPathMounts }}
|
||||
- name: {{ .name }}
|
||||
mountPath: {{ .mountPath }}
|
||||
readOnly: {{ .readOnly }}
|
||||
{{- end }}
|
||||
hostNetwork: true
|
||||
hostPID: true
|
||||
{{- if .Values.nodeExporter.nodeSelector }}
|
||||
@@ -57,4 +62,9 @@ spec:
|
||||
- name: sys
|
||||
hostPath:
|
||||
path: /sys
|
||||
{{- range .Values.nodeExporter.extraHostPathMounts }}
|
||||
- name: {{ .name }}
|
||||
hostPath:
|
||||
path: {{ .hostPath }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
@@ -65,6 +65,11 @@ spec:
|
||||
- name: storage-volume
|
||||
mountPath: {{ .Values.alertmanager.persistentVolume.mountPath }}
|
||||
subPath: "{{ .Values.server.persistentVolume.subPath }}"
|
||||
{{- range .Values.server.extraHostPathMounts }}
|
||||
- name: {{ .name }}
|
||||
mountPath: {{ .mountPath }}
|
||||
readOnly: {{ .readOnly }}
|
||||
{{- end }}
|
||||
{{- if .Values.server.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.server.nodeSelector | indent 8 }}
|
||||
@@ -81,3 +86,8 @@ spec:
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end -}}
|
||||
{{- range .Values.server.extraHostPathMounts }}
|
||||
- name: {{ .name }}
|
||||
hostPath:
|
||||
path: {{ .hostPath }}
|
||||
{{- end }}
|
||||
|
||||
@@ -216,6 +216,14 @@ nodeExporter:
|
||||
##
|
||||
extraArgs: {}
|
||||
|
||||
## Additional node-exporter hostPath mounts
|
||||
##
|
||||
extraHostPathMounts: []
|
||||
# - name: textfile-dir
|
||||
# mountPath: /srv/txt_collector
|
||||
# hostPath: /var/lib/node-exporter
|
||||
# readOnly: true
|
||||
|
||||
## Node labels for node-exporter pod assignment
|
||||
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
|
||||
##
|
||||
@@ -274,6 +282,14 @@ server:
|
||||
##
|
||||
extraArgs: {}
|
||||
|
||||
## Additional Prometheus server hostPath mounts
|
||||
##
|
||||
extraHostPathMounts: []
|
||||
# - name: certs-dir
|
||||
# mountPath: /etc/kubernetes/certs
|
||||
# hostPath: /etc/kubernetes/certs
|
||||
# readOnly: true
|
||||
|
||||
ingress:
|
||||
## If true, Prometheus server Ingress will be created
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user