Skip to content

Mount bpffs into kind node via extraMounts#525

Closed
alebedev87 wants to merge 1 commit into
bpfman:mainfrom
alebedev87:kind-bpffs-mount
Closed

Mount bpffs into kind node via extraMounts#525
alebedev87 wants to merge 1 commit into
bpfman:mainfrom
alebedev87:kind-bpffs-mount

Conversation

@alebedev87
Copy link
Copy Markdown
Contributor

@alebedev87 alebedev87 commented May 12, 2026

Podman-based kind clusters do not propagate host sysfs mounts into the node container, so /sys/fs/bpf is not visible inside the node even when bpffs is mounted on the host. This causes the mount-bpffs init container to fail with "operation not permitted" because it cannot mount a new filesystem onto the isolated sysfs.

Add an extraMounts entry to bind-mount /sys/fs/bpf from the host into the kind node with bidirectional propagation. This is harmless on Docker (where the mount is already visible) and fixes the init container failure on Podman.

#490 introduced a bpffs mount done by the agent itself however on machines with podman bpffs mount fails with operation not permitted:

$ oc -n bpfman logs bpfman-daemon-49n8w -c mount-bpffs
error: failed to mount bpffs at /sys/fs/bpf: mount syscall: operation not permitted

Podman-based kind clusters do not propagate host sysfs mounts into
the node container, so `/sys/fs/bpf` is not visible inside the node
even when bpffs is mounted on the host. This causes the `mount-bpffs`
init container to fail with "operation not permitted" because it
cannot mount a new filesystem onto the isolated sysfs.

Add an `extraMounts` entry to bind-mount `/sys/fs/bpf` from the host
into the kind node with bidirectional propagation. This is harmless
on Docker (where the mount is already visible) and fixes the init
container failure on Podman.

Co-Authored-By: Claude
Signed-off-by: Andrey Lebedev <alebedev@redhat.com>
@frobware frobware self-assigned this May 12, 2026
@alebedev87
Copy link
Copy Markdown
Contributor Author

The problem of using podman with KIND can be solved by using rootful podman/kind, closing this one.

@alebedev87 alebedev87 closed this May 13, 2026
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

Successfully merging this pull request may close these issues.

2 participants