mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/prometheus] extraSecretMounts support (#4059)
* [stable/prometheus] extraSecretMounts support Sometimes you need to monitor external services and sometimes those services have authentication mechanisms, like TLS. For example, you need to monitor external Etcd cluster. In such case it would be handy to put all the TLS files into Kubernetes Secret and then mount them into Prometheus Server pod, instead of distributing them on all the worker nodes and using hostPath mounts. * Incrementing the chart version
This commit is contained in:
committed by
k8s-ci-robot
parent
23bc6fa432
commit
28faaf8da0
@@ -1,5 +1,5 @@
|
||||
name: prometheus
|
||||
version: 5.4.3
|
||||
version: 5.4.4
|
||||
description: Prometheus is a monitoring system and time series database.
|
||||
home: https://prometheus.io/
|
||||
icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/assets/prometheus_logo-cb55bb5c346.png
|
||||
|
||||
@@ -210,6 +210,7 @@ Parameter | Description | Default
|
||||
`server.baseURL` | The external url at which the server can be accessed | ``
|
||||
`server.extraHostPathMounts` | Additional Prometheus server hostPath mounts | `[]`
|
||||
`server.extraConfigmapMounts` | Additional Prometheus server configMap mounts | `[]`
|
||||
`server.extraSecretMounts` | Additional Prometheus server Secret mounts | `[]`
|
||||
`server.configMapOverrideName` | Prometheus server ConfigMap override where full-name is `{{.Release.Name}}-{{.Values.server.configMapOverrideName}}` and setting this value will prevent the default server ConfigMap from being generated | `""`
|
||||
`server.ingress.enabled` | If true, Prometheus server Ingress will be created | `false`
|
||||
`server.ingress.annotations` | Prometheus server Ingress annotations | `[]`
|
||||
|
||||
@@ -104,6 +104,11 @@ spec:
|
||||
mountPath: {{ .mountPath }}
|
||||
readOnly: {{ .readOnly }}
|
||||
{{- end }}
|
||||
{{- range .Values.server.extraSecretMounts }}
|
||||
- name: {{ .name }}
|
||||
mountPath: {{ .mountPath }}
|
||||
readOnly: {{ .readOnly }}
|
||||
{{- end }}
|
||||
{{- if .Values.server.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.server.nodeSelector | indent 8 }}
|
||||
@@ -138,3 +143,8 @@ spec:
|
||||
configMap:
|
||||
name: {{ .configMap }}
|
||||
{{- end }}
|
||||
{{- range .Values.server.extraSecretMounts }}
|
||||
- name: {{ .name }}
|
||||
secret:
|
||||
secretName: {{ .secretName }}
|
||||
{{- end }}
|
||||
|
||||
@@ -418,6 +418,14 @@ server:
|
||||
# configMap: certs-configmap
|
||||
# readOnly: true
|
||||
|
||||
## Additional Prometheus server Secret mounts
|
||||
# Defines additional mounts with secrets. Secrets must be manually created in the namespace.
|
||||
extraSecretMounts: []
|
||||
# - name: secret-files
|
||||
# mountPath: /etc/secrets
|
||||
# secretName: prom-secret-files
|
||||
# readOnly: true
|
||||
|
||||
## ConfigMap override where fullname is {{.Release.Name}}-{{.Values.server.configMapOverrideName}}
|
||||
## Defining configMapOverrideName will cause templates/server-configmap.yaml
|
||||
## to NOT generate a ConfigMap resource
|
||||
|
||||
Reference in New Issue
Block a user