netbird
netbird copied to clipboard
couldn't access device /dev/net/tun
Unable to bring up client in Kubernetes.
Created a k8s deployment following the instructions [here](https://docs.netbird.io/how-to/routing-peers-and-kubernetes) pod comes up but the log file stated the errors below. Netbird cloud doesnt show the peer online.
To Reproduce
Steps to reproduce the behavior:
Follow these instructions https://docs.netbird.io/how-to/routing-peers-and-kubernetes
Expected behavior
The container should be able to create the interface and go online.
Are you using NetBird Cloud?
Yes
NetBird version
image: netbirdio/netbird:latest
2024-03-31T15:51:32Z INFO client/internal/config.go:125: generating new config /etc/netbird/config.json
2024-03-31T15:51:37Z ERRO management/client/grpc.go:64: failed creating connection to Management Service context deadline exceeded
2024-03-31T15:51:37Z ERRO client/internal/login.go:96: failed connecting to the Management service https://api.netbird.io:443 context deadline exceeded
2024-03-31T15:51:37Z WARN client/cmd/root.go:204: retrying Login to the Management service in 1.122904759s due to error context deadline exceeded
2024-03-31T15:51:41Z INFO client/internal/login.go:130: peer has been successfully registered on Management Service
2024-03-31T15:51:41Z INFO client/internal/connect.go:96: starting NetBird client version 0.26.0
2024-03-31T15:51:42Z WARN client/internal/wgproxy/factory_linux.go:15: failed to initialize ebpf proxy, fallback to user space proxy: field NbXdpProg: program nb_xdp_prog: map .rodata: map create: read- and write-only maps not supported (requires >= v5.2)
2024-03-31T15:51:42Z INFO iface/module_linux.go:76: couldn't access device /dev/net/tun, go error stat /dev/net/tun: no such file or directory, will attempt to load tun module, if running on container add flag --cap-add=NET_ADMIN
2024-03-31T15:51:42Z ERRO client/internal/engine.go:233: failed creating wireguard interface instance wt0: [couldn't check or load tun module]
2024-03-31T15:51:42Z ERRO client/internal/connect.go:235: error while starting Netbird Connection Engine: couldn't check or load tun module
2024-03-31T15:51:43Z WARN client/internal/wgproxy/factory_linux.go:15: failed to initialize ebpf proxy, fallback to user space proxy: field NbXdpProg: program nb_xdp_prog: map .rodata: map create: read- and write-only maps not supported (requires >= v5.2)
2024-03-31T15:51:43Z INFO iface/module_linux.go:76: couldn't access device /dev/net/tun, go error stat /dev/net/tun: no such file or directory, will attempt to load tun module, if running on container add flag --cap-add=NET_ADMIN
2024-03-31T15:51:43Z ERRO client/internal/engine.go:233: failed creating wireguard interface instance wt0: [couldn't check or load tun module]
2024-03-31T15:51:43Z ERRO client/internal/connect.go:235: error while starting Netbird Connection Engine: couldn't check or load tun module
Additional context
Add any other context about the problem here.