Issues porting container from docker to kubernetes

cmplieger

Dabbler
Joined
Aug 6, 2023
Messages
11
Hello, i'm new to truenas scale and kubernetes. I'm trying to port all of my old containers to truenas, and want to avoid a seperate VM and hacky solutions.
One of my containers is a qbittorrent + VPN container from hotio that works great, but it seems impossible to deploy on truenas:

Here is the docker compose:
services:
qbittorrent:
container_name: qbittorrent
image: cr.hotio.dev/hotio/qbittorrent
ports:
- "8080:8080"
environment:
- PUID=xxxx
- PGID=xxxx
- VPN_ENABLED=true
- VPN_CONF=wg0
- VPN_LAN_NETWORK=192.168.1.0/24
cap_add:
- NET_ADMIN
volumes:
- /xxxx/docker/qbittorrent:/config
- /xxxx/downloads:/data
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv6.conf.all.disable_ipv6=1
devices:
- /dev/net/tun:/dev/net/tun

For one the container request a host network bridge, and that option seems to have been removed fromt he deployment option.
Secondly there seems to be no way to pass through sysctls and devices on container creation.
I've added cap_add: net_admin in the capabilities section hoping that will work.

What is the best way forward here? why are things so restricted and difficult?
what would be the best way to replace this setup?
 
Top