6290322f1b
- VM stack 10 charts: victoria-metrics-cluster/auth, victoria-logs-cluster, victoria-metrics-agent/alert, opentelemetry-collector, kube-state-metrics, prometheus-node-exporter, alertmanager, perses (JWT/OIDC, Infisical-ready) - ArgoCD ApplicationSet (syncWave) + per-chart dip-values overlays - doc/victoria-metrics-architecture.md, define-chart-resources updates - includes pending working-tree changes (mlflow, kubeflow, apisix, CLAUDE.md) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
{{- $ctx := dict "helm" . }}
|
|
{{- $fullname := include "vm.plain.fullname" $ctx }}
|
|
{{- $ns := include "vm.namespace" $ctx }}
|
|
{{- if and (empty .Values.configMap) .Values.config }}
|
|
{{- $cfg := deepCopy .Values.config }}
|
|
{{- if .Values.extraScrapeConfigs }}
|
|
{{- $_ := set $cfg "scrape_configs" (concat (.Values.config.scrape_configs | default list) .Values.extraScrapeConfigs) }}
|
|
{{- end }}
|
|
{{- $data := toYaml (omit $cfg "useTpl") }}
|
|
{{- if $cfg.useTpl }}
|
|
{{- $data = tpl $data . }}
|
|
{{- end }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "vmagent.scrape.config.name" $ctx }}
|
|
namespace: {{ $ns }}
|
|
labels: {{ include "vm.labels" $ctx | nindent 4 }}
|
|
data:
|
|
scrape.yml: |{{ $data | nindent 4 }}
|
|
{{- end }}
|
|
{{- $rwcm := dict }}
|
|
{{- range $i, $rw := .Values.remoteWrite }}
|
|
{{- range $rwKey, $rwValue := $rw }}
|
|
{{- if or (kindIs "slice" $rwValue) (kindIs "map" $rwValue) }}
|
|
{{- $_ := set $rwcm (printf "%d-%s.yaml" $i $rwKey) (toYaml $rwValue) }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- with (include "vmagent.rw.config" .) }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ $fullname }}-rw
|
|
namespace: {{ $ns }}
|
|
labels: {{ include "vm.labels" $ctx | nindent 4 }}
|
|
data: {{ . | nindent 2 }}
|
|
{{- end }}
|