k3s: Pod-Monitoring in Grafana (Task 6.5)
ci / test (push) Failing after 23s

kube-state-metrics (NodePort 30808) und ServiceAccount prometheus-infra (nur
nodes/metrics) im Cluster; Prometheus auf infra liest kubelet/cAdvisor per TLS
gegen die k3s-CA. Ziele per file_sd aus kubectl get nodes, cAdvisor auf die
nötigen Reihen begrenzt. Dashboard "k3s – Pods" (Vorgabe nex), Alerts K3s*
nur mit notify. Playbook monitoring-k3s.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Robert Rapp
2026-10-19 16:31:03 +02:00
co-authored by Claude Opus 5.5
parent abf4a75063
commit 4ac251715e
17 changed files with 1271 additions and 13 deletions
@@ -24,6 +24,10 @@ infra_secrets: [POSTGRES_PASSWORD, KNASTER_API_TOKEN, GRAFANA_ADMIN_PASSWORD, GR
# Lese-Token monitoring@pve!prom (PVEAuditor) auf ops
infra_pve_exporter_env: /root/.config/knaster/pve-exporter.env
# Lesezugang zum kubelet für Prometheus (Task 6.5), auf ops von playbooks/monitoring-k3s.yml abgelegt
infra_k3s_token: /root/.config/knaster/k3s-prometheus.token
infra_k3s_ca: /root/.config/knaster/k3s-ca.crt
# file_sd: auf ops aus `tofu output -json gpu_vms` erzeugt (nicht im Repo)
infra_tofu_dir: "{{ playbook_dir }}/../../tofu"
infra_targets_dir: "{{ playbook_dir }}/../monitoring-targets.generated"