sysflow-telemetry / sysflow

SysFlow documentation and issues tracker
Other
45 stars 10 forks source link

Unable to enrich the data with Kubernetes Metadata on K3s #100

Open VishwasSomasekhariah opened 1 year ago

VishwasSomasekhariah commented 1 year ago

Indicate project Collector

Describe the bug On trying to enrich the eBPF data with Kubernetes metadata, received an error fetching K8s Data

To reproduce Steps to reproduce the behavior:

  1. Deployed Vanilla sysflow with sf-processor.
  2. Added clusterrole with name sysflow-agent
  3. Added clusterrolebinding with name sysflow-agent
  4. Edited daemonset.yaml, adding env in sfcollector container:         - name: SF_K8S_API_URL           value: https://kubernetes.default.svc/         - name: SF_K8S_API_CERT           value: /var/run/secrets/kubernetes.io/serviceaccount/token

Expected behavior Should have enriched the Raw eBPF data with Kubernetes metadata (namespace, pod details etc)

Screenshots image

Environment (please complete the following information):

Additional context I verified that the node name represented by EXPORTER_ID in the sf-collector container is correct and present in my cluster.