diff --git a/plugins/scheduler-k3s/scheduler_k3s.go b/plugins/scheduler-k3s/scheduler_k3s.go index 190571c5f..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.42.0", + Version: "0.52.0", }, } 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