Zum Inhalt springen
Produkte

// Deployment-Referenz

Monitoring the hub's own cluster (bundled core-agent)

Fleeger can watch the very Kubernetes cluster it runs in, without a separate agent, using the bundled core-agent. Two things make that work:

  1. A ServiceAccount with read-only RBAC (core-agent-rbac.yaml). A k8s_cluster resource left without a kubeconfig credential falls back to in-cluster access via this ServiceAccount's token. The ClusterRole grants get/list over exactly what the collector reads (nodes, pods, namespaces, services, PVCs, workloads, jobs, ingresses, HPAs, metrics, cert-manager CRDs) — nothing writable.
  2. The core-agent Deployment (core-agent.yaml), which runs the spoke-agent image in core mode and authenticates with the hub-level core-agent.creds.

Apply

# core-agent.creds must be in the fleeger-nats-auth Secret (the create command in
# "Secrets the hub needs" includes it). Then:
kubectl -n fleeger apply -f core-agent-rbac.yaml
kubectl -n fleeger apply -f core-agent.yaml

Running the hub in a namespace other than fleeger? Edit the ClusterRoleBinding subject namespace: in core-agent-rbac.yaml to match.

Then, in the UI

Create a location flagged local collector and add a k8s_cluster resource with its credential left empty — that's the switch that makes the collector use the in-cluster ServiceAccount instead of a kubeconfig. Do not paste the external admin kubeconfig: its endpoint is a control-plane public IP a firewalled pod can't reach, and it's far more privileged than the collector needs.

Monitoring a DIFFERENT cluster from inside it

To monitor a cluster that is not the hub's (a remote spoke), run a fleeger-agent in that cluster instead, with its own ServiceAccount + the same read-only ClusterRole. See Running a spoke-agent with plain manifests.

// Zusammenarbeit

Bereit, Ihre digitale Infrastruktur zu bauen?

Ob individuelle Automatisierung für Ihr Unternehmen oder ein durchgeplantes Netzwerk für Ihr Zuhause — lassen Sie uns über das Projekt sprechen.