Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 of 3 tasks
Radiance2024 opened this issue Apr 25, 2024 · 2 comments
Open
2 of 3 tasks
Labels
kind/community-report This was reported by a user in the Cilium community, eg via Slack. kind/question Frequently asked questions & answers. This issue will be linked from the documentation's FAQ.

Comments

@Radiance2024
Copy link

Radiance2024 commented Apr 25, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

  • The operation status of Cilium is normal

  • Running the "Star Wars Demo" and executing the command "kubectl exec -it -n kube-system cilium-wfvbx -- hubble observe -f -t l7" shows normal output data. However, there is no data output for accessing Java microservices deployed on Kubernetes.

  • L7 rules:
    apiVersion: "cilium.io/v2"
    kind: CiliumNetworkPolicy
    metadata:
    name: nginx-proxy-policy
    namespace: default # my namespace
    spec:
    endpointSelector:
    matchLabels:
    app: nginx # app: nginx 的 pods
    ingress:
    - fromCIDR:
    - "0.0.0.0/0" # Browser Access
    toPorts:
    - ports:
    - port: "30329" # NGINX port
    protocol: TCP
    egress:
    - toEndpoints:
    - matchLabels:
    app: my-gateway # Gateway Services
    toPorts:
    - ports:
    - port: "8080" # Gateway port
    protocol: TCP

  • May I ask what is causing this? Thank you!

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

  • Are you a user of Cilium? Please add yourself to the Users doc

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Radiance2024 Radiance2024 added kind/bug This is a bug in the Cilium logic. kind/community-report This was reported by a user in the Cilium community, eg via Slack. needs/triage This issue requires triaging to establish severity and next steps. labels Apr 25, 2024
@ti-mo
Copy link
Contributor

ti-mo commented Apr 25, 2024

Is this the same issue as #32175?

What do you mean by:

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

@ti-mo ti-mo added kind/question Frequently asked questions & answers. This issue will be linked from the documentation's FAQ. and removed kind/bug This is a bug in the Cilium logic. needs/triage This issue requires triaging to establish severity and next steps. labels Apr 25, 2024
@Radiance2024
Copy link
Author

Radiance2024 commented Apr 26, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/community-report This was reported by a user in the Cilium community, eg via Slack. kind/question Frequently asked questions & answers. This issue will be linked from the documentation's FAQ.
Projects
None yet
Development

No branches or pull requests

2 participants