When deploying an app, how do I specify a NIC?

zetabax

Dabbler
Joined
Jan 11, 2021
Messages
31
Afternoon community,

I'm testing Scale and really loving it!

So I've already deployed Plex with the default settings without issue but now I want to setup the Unifi Controller app and bind it to a specific NIC which is connected to the VLAN where my APs live.

I've tried playing around with the container network settings (below) but can't seem to get it to work.

Two questions;

1. when setting up a container / app, how do I bind it to a specific NIC?
2. is is possible for apps / containers to have their own virtual NICs?

Thanks in advance.

1632004172864.png
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
Watching this one - I have no idea what the answer is - but my long term plan involves this
 
  • Like
Reactions: ans

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
A better way to think about it is how to bind to a specific IP address.
Then that IP address can be bound to a specific port on a NIC.
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
Well that was cryptic
:smile:
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
So I've already deployed Plex with the default settings without issue but now I want to setup the Unifi Controller app and bind it to a specific NIC which is connected to the VLAN where my APs live.

I've tried playing around with the container network settings (below) but can't seem to get it to work.

Two questions;

1. when setting up a container / app, how do I bind it to a specific NIC?
2. is is possible for apps / containers to have their own virtual NICs?
This looks like the TrueCharts GUI: Our support channels are mainly email and discord, both of which are available on our website: https://truecharts.org

To at least give a few short answers:
1. Using the first release of TrueNAS SCALE and TrueCharts you cannot.
2. Using the first release of TrueNAS SCALE and TrueCharts they cannot.

The big-blue-button provides an extremely problematic hack that somewhat does what you want, but we opted not to include this in TrueCharts.
(due to technical reasons)

Well that was cryptic
:smile:
Most likely Morgan was refering to binding ALL Apps to a specific IP ^^

But per-App IP's:
Mostly just currently not supported.
With the future MetalLB this would become possible, but currently it isn't.
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
The OP has two interfaces each on a different VLAN. Each interface has its own IP Address (I assume)
In my setup I have two interfaces on the same VLAN. One NIC has an IP address, the other has no IP address as you shouldn't have two IP addresses from the same subnet on the same network - it leads to undesirable behaviour.

In Core I just setup a vnet interface and attached it to the second NIC - this works - allbeit with some fun.

No sign of anything like this in Scale - that I can see

And truecharts just posted as I did

My concern (probably not matched by the OP) is that if I need to disable hardware offloading (or the system does it for me) to run containers AND my important highspeed traffic on the same NIC - how much effect will that have?
 
Top