From 2b0f96dc1abbac33e2319712acae8d298874d160 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 10 Mar 2026 15:38:33 -0400 Subject: [PATCH 1/3] feat: upgrade vector chart from 0.42.0 to 0.50.0 --- plugins/scheduler-k3s/scheduler_k3s.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scheduler-k3s/scheduler_k3s.go b/plugins/scheduler-k3s/scheduler_k3s.go index 190571c5f..c97b3d4c2 100644 --- a/plugins/scheduler-k3s/scheduler_k3s.go +++ b/plugins/scheduler-k3s/scheduler_k3s.go @@ -140,7 +140,7 @@ var HelmCharts = []HelmChart{ Namespace: "vector", ReleaseName: "vector", RepoURL: "https://helm.vector.dev", - Version: "0.42.0", + Version: "0.50.0", }, } From 807ddf29a76f57767b1d0550da5f8539817f1013 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 26 Apr 2026 04:45:15 -0400 Subject: [PATCH 2/3] fix: update helm chart values for k3s scheduler - Mount `/vector-data-dir` from host (`/var/lib/vector` via `hostPath`, `DirectoryOrCreate`) so `kubernetes_logs` checkpoints survive pod restarts; resolves conflict with the chart's read-only `/var/lib` default volume - Enable Vector API on `:8686` and wire HTTP `/health` liveness and readiness probes; add `internal_metrics` source and `prometheus_exporter` sink on `:9090` so the `prom-exporter` service port is actually backed by an exporter - Set explicit `targetPort` on the `prom-exporter` port to avoid inference mismatches - Remove the `.message = .message` no-op - Add `node-role.kubernetes.io/control-plane` toleration alongside the legacy `master` key so the DaemonSet schedules on control-plane nodes regardless of cluster age --- .../templates/helm-config/vector.yaml | 45 +++++++++++++++++-- 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/plugins/scheduler-k3s/templates/helm-config/vector.yaml b/plugins/scheduler-k3s/templates/helm-config/vector.yaml index e20ccf829..956b55ce5 100644 --- a/plugins/scheduler-k3s/templates/helm-config/vector.yaml +++ b/plugins/scheduler-k3s/templates/helm-config/vector.yaml @@ -5,30 +5,61 @@ tolerations: - effect: NoSchedule key: node-role.kubernetes.io/master operator: Exists + - effect: NoSchedule + key: node-role.kubernetes.io/control-plane + operator: Exists - effect: NoSchedule key: node-role.kubernetes.io/infra operator: Exists service: ports: - - name: prom-exporter - port: 9090 - protocol: TCP + - name: prom-exporter + port: 9090 + protocol: TCP + targetPort: 9090 + +livenessProbe: + httpGet: + path: /health + port: api +readinessProbe: + httpGet: + path: /health + port: api + +extraVolumes: + - name: vector-data-dir + hostPath: + path: /var/lib/vector + type: DirectoryOrCreate + +extraVolumeMounts: + - name: vector-data-dir + mountPath: /vector-data-dir + readOnly: false customConfig: data_dir: /vector-data-dir + api: + enabled: true + address: 0.0.0.0:8686 + playground: false + sources: kubernetes_logs: type: kubernetes_logs + internal_metrics: + type: internal_metrics + transforms: kubernetes_container_logs: type: remap inputs: - kubernetes_logs source: | - .message = .message .container = .kubernetes.container_name .pod = .kubernetes.pod_name .namespace = .kubernetes.pod_namespace @@ -40,3 +71,9 @@ customConfig: - kubernetes_container_logs encoding: codec: json + + prom_exporter: + type: prometheus_exporter + inputs: + - internal_metrics + address: 0.0.0.0:9090 From 4af68e75c501e9d6c277cd5a4958dcfd9b37539c Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 26 Apr 2026 04:46:05 -0400 Subject: [PATCH 3/3] chore: upgrade the vector helm chart to 0.52.0 --- plugins/scheduler-k3s/scheduler_k3s.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scheduler-k3s/scheduler_k3s.go b/plugins/scheduler-k3s/scheduler_k3s.go index c97b3d4c2..fa1077220 100644 --- a/plugins/scheduler-k3s/scheduler_k3s.go +++ b/plugins/scheduler-k3s/scheduler_k3s.go @@ -140,7 +140,7 @@ var HelmCharts = []HelmChart{ Namespace: "vector", ReleaseName: "vector", RepoURL: "https://helm.vector.dev", - Version: "0.50.0", + Version: "0.52.0", }, }