MrAta / kube-bpf

(e)BPF primitives for Kubernetes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kube-bpf

WIP

BPFs on Kubernetes.

BPF custom resources

Usage

  1. Build the operator, the eBPF runner, and other Go tools

    make
  2. Build the docker image (and push it when the runner has changes)

    make image
    docker push bpftools/runbpf
  3. Create the BPF custom resources

    make examples

    This command creates BPF custom resources - eg., YAML files - for the eBPF programs listend in BPF_SOURCES variable. In case you want to scope the resources you can issue the make BPF_NAMESPACE=awesome examples command. You can modify the BPF_SOURCES and BPF_NAMES variables appending your eBPF programs to make it compile also them.

  4. Start the operator

    ./output/operator
  5. Apply the BPF, eg.:

    kubectl apply -f output/pacchetti.yaml

About

(e)BPF primitives for Kubernetes


Languages

Language:Go 89.2%Language:Makefile 8.4%Language:Dockerfile 2.3%