An open API service indexing awesome lists of open source software.

https://github.com/polarsignals/bpftool-container

Fedora based container with bpftool installed for troubleshooting.
https://github.com/polarsignals/bpftool-container

Last synced: about 2 months ago
JSON representation

Fedora based container with bpftool installed for troubleshooting.

Awesome Lists containing this project

README

        

# bpftool container

It occasionally happens that we have to debug low level eBPF details. It's useful to have a container image ready with the tools we need.

For example this one-liner can be used to dump BPF logs from a node (replace the `nodeName`):

```
kubectl run --rm -it --privileged --image=fedora --overrides='{ "apiVersion": "v1", "spec": { "nodeName": "", "hostPID": true, "securityContext": { "privileged": true}, "containers": [{"name":"debug", "command": ["/bin/sh", "-c", "sudo bpftool prog tracelog"], "stdin": true, "stdinOnce": true, "tty": true, "securityContext": {"privileged": true}, "image": "ghcr.io/polarsignals/bpftool:latest","volumeMounts":[{"mountPath": "/sys/fs/bpf", "name":"bpffs"}]}], "volumes": [{"name": "bpffs","hostPath":{"path":"/sys/fs/bpf"}}] } }' debug
```