feat(thanos_sidecar): if enabled must also be configured for deploy to occur
!8
This commit is contained in:
@ -48,12 +48,14 @@ spec:
|
||||
storage:
|
||||
{{- toYaml .Values.nfc_monitoring.prometheus.storage | nindent 4 }}
|
||||
{{ if .Values.nfc_monitoring.thanos.sidecar.enabled }}
|
||||
{{ if .Values.nfc_monitoring.thanos.sidecar.config }}
|
||||
thanos:
|
||||
image: "{{ .Values.nfc_monitoring.thanos.image.name }}:{{ .Values.nfc_monitoring.thanos.image.tag }}"
|
||||
objectStorageConfig:
|
||||
key: thanos.yaml
|
||||
name: thanos-sidecar-config
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
version: 2.42.0
|
||||
{{ if .Values.nfc_monitoring.prometheus.additional }}
|
||||
{{ toYaml .Values.nfc_monitoring.prometheus.additional | nindent 2 }}
|
||||
|
@ -1,4 +1,5 @@
|
||||
{{ if .Values.nfc_monitoring.thanos.sidecar.enabled }}
|
||||
{{ if .Values.nfc_monitoring.thanos.sidecar.config }}
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PrometheusRule
|
||||
@ -52,4 +53,5 @@ spec:
|
||||
labels:
|
||||
severity: critical
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -1,4 +1,5 @@
|
||||
{{ if .Values.nfc_monitoring.thanos.sidecar.enabled }}
|
||||
{{ if .Values.nfc_monitoring.thanos.sidecar.config }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
@ -16,3 +17,4 @@ stringData:
|
||||
{{ toYaml .Values.nfc_monitoring.thanos.sidecar.config | nindent 4 }}
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@ -28,6 +28,8 @@ spec:
|
||||
app.kubernetes.io/part-of: {{ $.Chart.Name }}
|
||||
|
||||
{{ if .Values.nfc_monitoring.thanos.sidecar.enabled }}
|
||||
{{ if .Values.nfc_monitoring.thanos.sidecar.config }}
|
||||
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
@ -56,4 +58,5 @@ spec:
|
||||
app.kubernetes.io/name: thanos-sidecar
|
||||
app.kubernetes.io/part-of: {{ $.Chart.Name }}
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
19
values.yaml
19
values.yaml
@ -409,15 +409,16 @@ nfc_monitoring:
|
||||
sidecar:
|
||||
|
||||
enabled: true
|
||||
|
||||
config:
|
||||
type: S3
|
||||
config:
|
||||
bucket: "thanos-metrics"
|
||||
endpoint: "rook-ceph-rgw-earth.ceph.svc:80"
|
||||
access_key: "7J5NM2MNCDB4T4Y9OKJ5"
|
||||
secret_key: "t9r69RzZdWEBL3NCKiUIpDk6j5625xc6HucusiGG"
|
||||
insecure: true
|
||||
|
||||
# Config must be specified for the sidecar to deploy
|
||||
config: {}
|
||||
# type: S3
|
||||
# config:
|
||||
# bucket: "thanos-metrics"
|
||||
# endpoint: "rook-ceph-rgw-earth.ceph.svc:80"
|
||||
# access_key: "7J5NM2MNCDB4T4Y9OKJ5"
|
||||
# secret_key: "t9r69RzZdWEBL3NCKiUIpDk6j5625xc6HucusiGG"
|
||||
# insecure: true
|
||||
|
||||
|
||||
additions:
|
||||
|
Reference in New Issue
Block a user