mirror of
https://github.com/helm/charts.git
synced 2026-08-22 13:57:51 +00:00
Adding initContainer capabilites in prometheus specs template (#21837)
Signed-off-by: Barthelemy Vessemont <barthelemy@storelift.co> Co-authored-by: Barthelemy Vessemont <barthelemy@storelift.co>
This commit is contained in:
co-authored by
Barthelemy Vessemont
parent
95de995efd
commit
402a220fe1
@@ -12,7 +12,7 @@ sources:
|
||||
- https://github.com/coreos/kube-prometheus
|
||||
- https://github.com/coreos/prometheus-operator
|
||||
- https://coreos.com/operators/prometheus
|
||||
version: 8.12.11
|
||||
version: 8.12.12
|
||||
appVersion: 0.37.0
|
||||
tillerVersion: ">=2.12.0"
|
||||
home: https://github.com/coreos/prometheus-operator
|
||||
|
||||
@@ -273,6 +273,7 @@ The following tables list the configurable parameters of the prometheus-operator
|
||||
| `prometheus.prometheusSpec.apiserverConfig` | Custom `kubernetes_sd_config` https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#apiserverconfig Default configuration will connect to current Kubernetes cluster | `{}` |
|
||||
| `prometheus.prometheusSpec.configMaps` | ConfigMaps is a list of ConfigMaps in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods. The ConfigMaps are mounted into /etc/prometheus/configmaps/ | `[]` |
|
||||
| `prometheus.prometheusSpec.containers` | Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to a Prometheus pod. |`[]`|
|
||||
| `prometheus.prometheusSpec.initContainers` | InitContainers allows injecting specialized containers that run before app containers. This is meant to pre-configure and tune mounted volume permissions. |`[]`|
|
||||
| `prometheus.prometheusSpec.disableCompaction` | If true, pass --storage.tsdb.max-block-duration=2h to prometheus. This is already done if using Thanos |`false`|
|
||||
| `prometheus.prometheusSpec.enableAdminAPI` | EnableAdminAPI enables Prometheus the administrative HTTP API which includes functionality such as deleting time series. | `false` |
|
||||
| `prometheus.prometheusSpec.enforcedNamespaceLabel` | enforces adding a namespace label of origin for each alert and metric that is user created. | `""` |
|
||||
|
||||
@@ -220,6 +220,10 @@ spec:
|
||||
containers:
|
||||
{{ toYaml .Values.prometheus.prometheusSpec.containers | indent 4 }}
|
||||
{{- end }}
|
||||
{{- if .Values.prometheus.prometheusSpec.initContainers }}
|
||||
initContainers:
|
||||
{{ toYaml .Values.prometheus.prometheusSpec.initContainers | indent 4 }}
|
||||
{{- end }}
|
||||
{{- if .Values.prometheus.prometheusSpec.priorityClassName }}
|
||||
priorityClassName: {{ .Values.prometheus.prometheusSpec.priorityClassName }}
|
||||
{{- end }}
|
||||
|
||||
@@ -1836,6 +1836,10 @@ prometheus:
|
||||
## if using proxy extraContainer update targetPort with proxy container port
|
||||
containers: []
|
||||
|
||||
## InitContainers allows injecting additional initContainers. This is meant to allow doing some changes
|
||||
## (permissions, dir tree) on mounted volumes before starting prometheus
|
||||
initContainers: []
|
||||
|
||||
## Enable additional scrape configs that are managed externally to this chart. Note that the prometheus
|
||||
## will fail to provision if the correct secret does not exist.
|
||||
## This option requires that you are maintaining a secret in the same namespace as Prometheus with
|
||||
|
||||
Reference in New Issue
Block a user