> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/cgw/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/cgw/latest/configuration/debug.md).

# Debug container

The Connectivity Gateway (CGW) pod can run a debug container with networking
tools, such as `ip xfrm` and `tcpdump`, to exec into for troubleshooting. It is
disabled by default; enable it for an investigation:

```yaml
debug:
  enabled: true
```

The container runs `privileged` and holds every capability, more than any other
container of the pod. Disable it again once the investigation is over.

Its resources come from `resources.debug` (`100m` CPU, `64Mi` memory by
default). Tools started with `kubectl exec` count against that limit; raise it
for a long capture.

With `pcap.enabled`, the debug container also mounts the captures of the
[PCAP collector](https://docs.cennso.com/components/cgw/latest/configuration/traffic.md) read-only at `/data/`, where the collector writes
them. They can be listed there and copied out with `kubectl cp`.

A pod needs at least one container. A configuration that enables none of its
own - GRE only, for instance, which runs as an init container - fails to render
with `no container enabled`. Enable the debug container, or add a container
through `additionalContainers`.
