Giter Club home page Giter Club logo

Comments (10)

def avatar def commented on May 14, 2024 1

I reproduced the problem on a k3s+cilium cluster. The bug is that node-agent expected all connections to be present in the conntrack table. In the case of Cilium, the destination of a TCP connection has been overwritten at the eBPF level, bypassing conntrack.
This is fixed in coroot-node-agent 1.0.21

from coroot.

def avatar def commented on May 14, 2024

Hey @rlex!

Is your Loki under the load? I mean, there must be active connections between components to display them on the service map.
Can you please check the following metrics in your Prometheus?

  • rate(container_net_tcp_successful_connects_total{container_id=~".+loki-distributor.+"}[1m])
  • container_net_tcp_active_connections{container_id=~".+loki-distributor.+”}

To reduce the number of apps displayed on the overview page, we intentionally hide apps that have no active inbound or outbound connections. Otherwise, many auxiliary services such as sshd, udevd, etc. would be shown there.

from coroot.

rlex avatar rlex commented on May 14, 2024

Yes, there is constant traffic flow. Some parts are getting picked up, but in a strange way:

Screenshot 2022-09-20 at 21 13 09

Interesting that loki-index-gateway is designated as "external endpoint" while it's part of k8s service-cidr.

As for metrics, they are empty. Only two pods appears under .loki. regex

from coroot.

rlex avatar rlex commented on May 14, 2024

I deployed it on usual kubernetes and looks like everything is working. But it also have calico as a cni with kube-proxy.

In my setup, it's cilium with ebpf dataplane and DSR enabled. DSR shouldn't affect internal cluster networking, though.

from coroot.

def avatar def commented on May 14, 2024

It looks like the issue is related to k3s, not CNI. Is there any way to reproduce your k3s+Loki setup? I'd look into it.

from coroot.

rlex avatar rlex commented on May 14, 2024

It's fairly typical setup, but i deploy coredns and CNI manually. I also deploy hetzner cloud-controller.

I deploy it with my ansible role

from coroot.

def avatar def commented on May 14, 2024

@rlex , it seems like we fixed this issue.
Could you check this by running coroot:0.3.0 + coroot-node-agent:1.0.20 on your k3s cluster?

from coroot.

rlex avatar rlex commented on May 14, 2024

Sadly no, no luck. k3s is now consided part of control-plane which makes map less cluttered, but there is still no proper links between majority of services, and service-cidr is still considered "external endpoint".
So in my case:

  1. pod CIDR is 10.121.0.0/24
  2. service CIDR is 10.43.0.0/16

And sometimes both IPs in pod cidr and service cidr is listed as "external endpoint"

But only links i saw in several days are those:

Screenshot 2022-09-22 at 20 35 03

Screenshot 2022-09-22 at 20 35 24

If you have some VM for tests i can try to create almost 1:1 config for debugging.

from coroot.

rlex avatar rlex commented on May 14, 2024

Can confirm it works now. Thanks alot for great product and great communication!

from coroot.

def avatar def commented on May 14, 2024

Thank you for the detailed bug report!

from coroot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.