K8 - Docker - VLAN / Dedicated IP

alekslyse

Cadet
Joined
Apr 11, 2023
Messages
3
Is it any current possibility to assign own IP to docker images, for example with the docker-compose addon that exists? Its a bit limited with just reuse one IP for the host, even if I use traefik reversed proxy
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
You're not embracing Kubernetes/modern security concepts by sticking with VLAN/IP based segregation, but it's your choice.

It's possible to do, but it's a hack that will see all your traffic routed out to your default gateway and back again if you're communicating between apps.

In an official app, you can add an external interface under the Network section, then pick a parent interface and select DHCP or static IP... set routes/DNS, etc.
 
Top