1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 03:38:43 +00:00

Add sidecar containers field to Prometheus Helm chart ()

* helm/prometheus: Add prometheus labels to prometheus podMetadata labels

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>

* helm/prometheus: Add sidecarsSpec field

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>

* Update Chart.yaml
This commit is contained in:
Steve Durrheimer 2018-06-27 22:14:34 +02:00 committed by Giancarlo Rubio
parent 39fe3f673a
commit d7ca8a8598
6 changed files with 20 additions and 3 deletions

View file

@ -7,4 +7,4 @@ maintainers:
name: kube-prometheus
sources:
- https://github.com/coreos/prometheus-operator
version: 0.0.83
version: 0.0.84

View file

@ -6,7 +6,7 @@ dependencies:
condition: deployAlertManager
- name: prometheus
version: 0.0.44
version: 0.0.45
#e2e-repository: file://../prometheus
repository: https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/

View file

@ -425,6 +425,10 @@ prometheus:
# storage: 50Gi
# selector: {}
sidecarsSpec: []
# - name: sidecar
# image: registry/name:tag
# default rules are in templates/general.rules.yaml
# prometheusRules: {}

View file

@ -7,4 +7,4 @@ maintainers:
name: prometheus
sources:
- https://github.com/coreos/prometheus-operator
version: 0.0.44
version: 0.0.45

View file

@ -16,6 +16,11 @@ metadata:
{{- end }}
name: {{ template "prometheus.fullname" . }}
spec:
{{- if .Values.labels }}
podMetadata:
labels:
{{ toYaml .Values.labels | indent 6 }}
{{- end }}
{{- if .Values.alertingEndpoints }}
alerting:
alertmanagers:
@ -129,4 +134,8 @@ spec:
name: prometheus-{{ .Release.Name }}-additional-alertmanager-configs
key: additional-alertmanager-configs.yaml
{{- end }}
{{- if .Values.sidecarsSpec }}
containers:
{{ toYaml .Values.sidecarsSpec | indent 4 }}
{{- end }}

View file

@ -348,3 +348,7 @@ additionalAlertManagerConfigs: {}
# - "localhost:9093"
serviceMonitorNamespaceSelector: {}
sidecarsSpec: []
# - name: sidecar
# image: registry/name:tag