---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: logging

resources:
  - ../../../base/logging

helmCharts:
  # Dedicated JetStream NATS cluster — the durable log bus.
  - name: nats
    repo: https://nats-io.github.io/k8s/helm/charts
    version: "2.14.2"
    releaseName: nats
    namespace: logging
    valuesFile: values-nats.yaml
  # Edge agent (DaemonSet): tails every pod's logs, publishes to JetStream.
  - name: vector
    repo: https://helm.vector.dev
    version: "0.57.0"
    releaseName: vector-agent
    namespace: logging
    valuesFile: values-vector-agent.yaml
  # VM ingest (Deployment): HTTP NDJSON front door -> JetStream.
  - name: vector
    repo: https://helm.vector.dev
    version: "0.57.0"
    releaseName: vector-vm-ingest
    namespace: logging
    valuesFile: values-vector-vm-ingest.yaml
  # Transform tier (StatefulSet): JetStream consumer -> shape -> ClickHouse.
  - name: vector
    repo: https://helm.vector.dev
    version: "0.57.0"
    releaseName: vector-aggregator
    namespace: logging
    valuesFile: values-vector-aggregator.yaml
  # Archiver: replaced by the logarchiver Deployment (apps/base/logging).
