Files
argocd-apps/apps/base/logging/vlagent.yaml
T
unkin-agent c979579c50 Collect pod logs with VLAgent, retire the NATS/ClickHouse chain (#506)
The vector -> JetStream -> ClickHouse chain duplicated storage the in-cluster VictoriaLogs already provides, and its NATS StatefulSet keeps the logging Application from syncing.

- collect pod logs with a VLAgent DaemonSet remote-writing to vlinsert-logs
- delete vector, NATS, ClickHouse, logarchiver and logviewer
- drop clickhouse-system from the logging ApplicationSet

---------

Co-authored-by: BenVincent <benvin@main.unkin.net>
Reviewed-on: #506
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-09-27 20:23:58 +10:00

27 lines
687 B
YAML

---
apiVersion: operator.victoriametrics.com/v1
kind: VLAgent
metadata:
name: logs
namespace: logging
spec:
componentVersion: v1.52.0
k8sCollector:
enabled: true
remoteWrite:
# vlagent appends ?version=v1 itself; the path must be the native endpoint
- url: http://vlinsert-logs.logging.svc.cluster.local:9481/insert/native
remoteWriteSettings:
# collector mode buffers to the node's /var/lib/vlagent-data, so cap it:
# a vlinsert outage must not fill the host disk (500MB chunks)
maxDiskUsagePerURL: 2GiB
tolerations:
- operator: Exists
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: "1"
memory: 1Gi