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

[datadog-agent] CiliumNetworkPolicy issues due to upstream Cilium issue affecting tunnelled Cilium deploys #1566

Open
wparr-circle opened this issue Oct 21, 2024 · 0 comments

Comments

@wparr-circle
Copy link

wparr-circle commented Oct 21, 2024

Recently when attempting to move from a self-managed CiliumNetworkPolicy to the CiliumNetworkPolicy managed by the helm chart in this repository - we discovered that it had started causing drops for ports 8125 UDP and 8126 TCP.

This was odd, given the presence of the following entries in the CiliumNetworkPolicy

- description: Ingress for dogstatsd
  endpointSelector:
    matchLabels:
      app: datadog
  ingress:
  - fromEndpoints:
    - {}
    toPorts:
    - ports:
      - port: "8125"
        protocol: UDP
- description: Ingress for APM trace
  endpointSelector:
    matchLabels:
      app: datadog
  ingress:
  - fromEndpoints:
    - {}
    toPorts:
    - ports:
      - port: "8126"
        protocol: TCP

There seems to be a similar issue previously reported #428

We managed to track this down to an upstream cilium issue which was summarised to

using overlay routing, then a client accesses a remote pod via hostPort with remote-node source identity (due to Masquerading when the client traffic leaves its own node). And the accessed pod's ingress policy needs to allow for this identity.

@wparr-circle wparr-circle changed the title [datadog-agent] CiliumNetworkPolicy issues due to upstream Cilium issue [datadog-agent] CiliumNetworkPolicy issues due to upstream Cilium issue affecting tunnelled Cilium deploys Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant