For some special use cases it would be fine if rancher could handle multiple network interfaces and macvlan (bridge vlan into a container). Will it possible / supported with Rancher 2.0?
Would it possible to use the following docker-compose.yml as expected with Rancher (2.0) @denise?
version: '2'
services:
fw:
image: alpine
networks:
vlan888:
vlan999:
cap_add:
- NET_ADMIN
- NET_RAW
tty: true
stdin_open: true
command: sh
vpn:
image: alpine
network_mode: "service:fw"
depends_on:
- fw
tty: true
stdin_open: true
command: sh
networks:
vlan888:
driver: macvlan
driver_opts:
parent: eth1.888
ipam:
config:
- subnet: 10.25.86.0/24
gateway: 10.25.86.1
vlan999:
driver: macvlan
driver_opts:
parent: eth1.999
ipam:
config:
- subnet: 10.25.87.0/24
gateway: 10.25.87.1
1 Like
AFAIK Kubernetes does not support multiple networks.
Thanks, @vincent. So I should use docker-compose for that special use case.