Skip to content

Commit

Permalink
use bindplane prometheus image and remove configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirianni committed Feb 15, 2024
1 parent 056462f commit 98e9227
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 44 deletions.
18 changes: 1 addition & 17 deletions charts/bindplane/templates/bindplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ spec:
{{- if eq (include "bindplane.deployment_type" .) "StatefulSet" }}
{{- if and (.Values.prometheus.enable) (.Values.prometheus.enableSideCar) }}
- name: prometheus
image: prom/prometheus:v2.47.2
image: ghcr.io/observiq/bindplane-prometheus:{{ include "bindplane.tag" . }}
ports:
- containerPort: 9090
name: http
Expand All @@ -392,15 +392,6 @@ spec:
capabilities:
drop: ["ALL"]
volumeMounts:
- name: {{ include "bindplane.fullname" . }}-prometheus-config
mountPath: /etc/prometheus/prometheus.yml
subPath: prometheus.yml
- name: {{ include "bindplane.fullname" . }}-prometheus-config
mountPath: /etc/prometheus/rules.yml
subPath: rules.yml
- name: {{ include "bindplane.fullname" . }}-prometheus-config
mountPath: /etc/prometheus/web.yml
subPath: web.yml
- name: {{ include "bindplane.fullname" . }}-prometheus-data
mountPath: /var/lib/prometheus/tsdb
{{- end }}
Expand Down Expand Up @@ -439,13 +430,6 @@ spec:
secretName: {{ .Values.prometheus.tls.secret.name }}
{{- end }}
{{- end }}
{{- if eq (include "bindplane.deployment_type" .) "StatefulSet" }}
{{- if and (.Values.prometheus.enable) (.Values.prometheus.enableSideCar) }}
- name: {{ include "bindplane.fullname" . }}-prometheus-config
configMap:
name: {{ include "bindplane.fullname" . }}-prometheus-config
{{- end }}
{{- end }}
{{- if eq (include "bindplane.deployment_type" .) "StatefulSet" }}
volumeClaimTemplates:
{{- if eq .Values.backend.type "bbolt" }}
Expand Down
27 changes: 0 additions & 27 deletions charts/bindplane/templates/prometheus_config.yaml

This file was deleted.

0 comments on commit 98e9227

Please sign in to comment.