Network and disk
What the LogDrop metrics agent connects to, egress for host-network agents, and the disk to reserve for its queues.
This page is for cluster operators who install the receivers of the LogDrop chart (Kubernetes). Tracing alone needs neither: the trace injector runs in the pod network, and the Java agent keeps its queue in memory.
Which parts use the node's network and disk
Most parts of the chart run in the pod network like any other pod. The host/kubelet agent can run on the node's host network instead, where it shares the node's address, and it keeps its queues in a directory on the node. Where each part runs decides which network rules apply to it and how much disk to reserve.
| Workload | Network | Queue storage |
|---|---|---|
| Host/kubelet agent (DaemonSet, one pod per node) | Host network when agent.hostmetrics.enabled (needed to read the node's /proc/net); pod network otherwise | Node directory <agent.queueHostPath>/<release namespace>-<release name>-logdrop-infrastructure, default under /var/lib/logdrop-infrastructure/ |
| Cluster state (Deployment, one replica) | Pod network | PVC, cluster.queue.size (default 256Mi) |
| Approved Prometheus sources (Deployment, one replica) | Pod network | PVC, prometheus.queue.size (default 256Mi) |
| Trace injector | Pod network | none |
What the agent connects to
The agent opens these connections. Allow them in your NetworkPolicies, firewalls or security groups.
| Destination | Port | Chart value that names it | When |
|---|---|---|---|
Cluster DNS (kube-dns in kube-system) | 53 UDP and TCP | networkPolicy.dnsNamespace, networkPolicy.dnsPodLabels | Always |
LogDrop endpoint (export.endpoint) | 443, or the endpoint's port | networkPolicy.exportCIDRs | Always; entity events and receiver evidence use it too |
| The node's own kubelet | 10250 | agent.kubeletstats.nodeCIDRs | agent.kubeletstats.enabled |
| Kubernetes API server, after service DNAT | 443, 6443 | networkPolicy.apiServerCIDRs, networkPolicy.apiServerPorts | Kubelet metrics, resource capacity and identity lookups |
Nothing connects to the agent: in host-network mode its health and metrics endpoints listen on 127.0.0.1 only. A NetworkPolicy matches addresses, not host names: allow the addresses that otel.logdrop.io resolves to, and check them again if the agent starts to log connection errors.
Egress for host-network agents
The chart renders a default-deny NetworkPolicy for every component, allowing only what it needs. Kubernetes leaves NetworkPolicy behaviour for host-network pods to the network plugin, and most plugins do not apply pod policies to them: with agent.hostmetrics.enabled the agent's policy may have no effect, and the agent can reach anything the node can. Its traffic also leaves with the node's address, not a pod address.
Choose one of these before production:
- No host network. Turn
agent.hostmetrics.enabledoff and keepagent.kubeletstats.enabled. The agent then runs in the pod network and its NetworkPolicy applies like any other. Node, pod and container CPU and memory still come from the kubelet; you lose the host filesystem and network metrics and the host ID. Receiver evidence needs host metrics, so it is off too. - Node-level egress rules. Limit outbound traffic of the node pool in your cloud firewall or security groups. These rules cover every process on the node, so they must also allow what the node itself needs (API server, image registries, NTP, your own services); most platform teams already have them, and the rows above are what to add.
- Network plugin host policies. Cilium host firewall (
hostFirewall.enabled, aCiliumClusterwideNetworkPolicywith anodeSelector) or Calico host endpoints with aGlobalNetworkPolicy. A host policy puts the whole node into default deny for the direction it selects, so start in audit mode and allow the node's own traffic first; a wrong rule takes nodes down.
Verify the result from a node, not from a pod: a host-network process is what has to be stopped.
Kubelets from the pod network on Cilium
With option 1 on Cilium (for example DigitalOcean Kubernetes), the chart's ipBlock rule for agent.kubeletstats.nodeCIDRs does not match: Cilium treats node addresses as the host and remote-node entities. The agent then logs dial tcp <node IP>:10250: i/o timeout. Allow exactly that traffic with a CiliumNetworkPolicy next to the chart's policy:
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: logdrop-agent-kubelet-egress
namespace: logdrop-system
spec:
endpointSelector:
matchLabels:
app.kubernetes.io/instance: logdrop
app.kubernetes.io/component: agent
egress:
- toEntities: [host, remote-node]
toPorts:
- ports:
- {port: "10250", protocol: TCP}Disk headroom for agent queues
Each agent pod keeps unsent data in files in its node directory: one file per exporter, one attempt journal per instrumented receiver. Each file grows up to a fixed ceiling and then refuses new data (the data is lost; the file never fills the disk past its ceiling). Compaction writes a temporary copy of up to the file's live data into the same directory.
| File | Exists when | Ceiling |
|---|---|---|
| Metrics export queue | Always | max(32 MiB, 4 × export.queueBytes) |
| Entity event queue | entityEvents.enabled and agent.hostmetrics.enabled | max(32 MiB, 4 × export.queueBytes) |
| Receiver attempt journal, hostmetrics | receiverPublication.enabled | max(32 MiB, 4 × receiverPublication.queueBytes) |
| Receiver attempt journal, kubeletstats | receiverPublication.enabled | max(32 MiB, 4 × receiverPublication.queueBytes) |
With the defaults (export.queueBytes and receiverPublication.queueBytes 8 MiB) and every option on, that is 4 × 32 MiB = 128 MiB of files per node and release, and up to 256 MiB with compaction. When LogDrop accepts the data the files stay small; they grow during an outage or a network problem.
.png)