69 lines
2.4 KiB
YAML
69 lines
2.4 KiB
YAML
---
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: Prometheus
|
|
metadata:
|
|
labels:
|
|
{{ toYaml $.Values.nfc_monitoring.prometheus.labels | nindent 4 }}
|
|
app.kubernetes.io/instance: {{ $.Release.Name }}
|
|
app.kubernetes.io/part-of: {{ $.Chart.Name }}
|
|
app.kubernetes.io/managed-by: {{ $.Release.Service }}
|
|
app.kubernetes.io/version: {{ $.Chart.Version }}
|
|
name: {{ $.Release.Name }}
|
|
namespace: "{{ .Values.nfc_monitoring.prometheus.namespace }}"
|
|
spec:
|
|
affinity:
|
|
{{- toYaml .Values.nfc_monitoring.prometheus.affinity | nindent 4 }}
|
|
alerting:
|
|
alertmanagers:
|
|
- apiVersion: v2
|
|
name: alertmanager-{{ $.Release.Name }}
|
|
namespace: "{{ .Values.nfc_monitoring.alert_manager.namespace }}"
|
|
port: web
|
|
enableFeatures: []
|
|
externalLabels: {}
|
|
image: {{ .Values.nfc_monitoring.prometheus.image.name }}:{{ .Values.nfc_monitoring.prometheus.image.tag}}
|
|
nodeSelector:
|
|
kubernetes.io/os: linux
|
|
podMetadata:
|
|
labels:
|
|
{{ toYaml $.Values.nfc_monitoring.prometheus.labels | nindent 6 }}
|
|
app.kubernetes.io/instance: {{ $.Release.Name }}
|
|
app.kubernetes.io/part-of: {{ $.Chart.Name }}
|
|
app.kubernetes.io/managed-by: {{ $.Release.Service }}
|
|
app.kubernetes.io/version: {{ $.Chart.Version }}
|
|
podMonitorNamespaceSelector: {}
|
|
podMonitorSelector: {}
|
|
probeNamespaceSelector: {}
|
|
probeSelector: {}
|
|
{{ if .Values.nfc_monitoring.prometheus.remotewrite }}
|
|
remoteWrite: {{ .Values.nfc_monitoring.prometheus.remotewrite | toYaml | nindent 4 }}
|
|
|
|
{{- end }}
|
|
replicas: {{ $.Values.nfc_monitoring.prometheus.replicas }}
|
|
resources:
|
|
requests:
|
|
memory: 400Mi
|
|
ruleNamespaceSelector: {}
|
|
securityContext:
|
|
fsGroup: 2000
|
|
runAsNonRoot: true
|
|
runAsUser: 1000
|
|
serviceAccountName: prometheus-{{ $.Release.Name }}
|
|
serviceMonitorNamespaceSelector: {}
|
|
serviceMonitorSelector: {}
|
|
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 }}
|
|
{{ end }}
|