cilium / cilium

eBPF-based Networking, Security, and Observability
https://cilium.io
Apache License 2.0
19.32k stars 2.81k forks source link

The L7 traffic data of the microservices running on Kubernetes cannot be obtained #32177

Open Radiance2024 opened 2 months ago

Radiance2024 commented 2 months ago

Is there an existing issue for this?

What happened?

Cilium Version

Client: 1.15.4 go version go1.21.9 linux/amd64 Daemon: 1.15.4 go version go1.21.9 linux/amd64

Kernel Version

OS: CentOS Linux 8.5 (Core) Kernel Version: 4.18.0-348.el8.x86_64

Kubernetes Version

v1.24.9

Regression

No response

Sysdump

helm install cilium cilium/cilium --version 1.15.4 \ --namespace kube-system \ --set hubble.relay.enabled=true \ --set hubble.ui.enabled=true \ --set prometheus.enabled=true \ --set operator.prometheus.enabled=true \ --set hubble.enabled=true \ --set hubble.metrics.enableOpenMetrics=true \ --set global.jaeger.enabled=true \ --set l7-proxy.enabled=true \ --set gatewayAPI.enabled=true \ --set hubble.metrics.enabled="{dns,drop,tcp,flow,port-distribution,icmp,httpV2:exemplars=true;labelsContext=source_ip\,source_namespace\,source_workload\,destination_ip\,destination_namespace\,destination_workload\,traffic_direction}"

Relevant log output

No response

Anything else?

No response

Cilium Users Document

Code of Conduct

ti-mo commented 2 months ago

Is this the same issue as https://github.com/cilium/cilium/issues/32175?

What do you mean by:

However, there is no data output for accessing Java microservices deployed on Kubernetes.

Radiance2024 commented 2 months ago

I want to capture L7 traffic for the deployed java microservice via the "hubble observe -f -t l7" command, but I don't see the traffic data when I execute the command.

How do we need to configure L7 rules to capture Java microservice traffic running in k8s universally? thanks!

christarazi commented 3 weeks ago

@Radiance2024 You will need to define L7 rules to see L7 events from Hubble: https://docs.cilium.io/en/stable/security/policy/language/#l7-policy