Skip to content

Instantly share code, notes, and snippets.

@fabiand
Last active July 3, 2018 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiand/dc974f1c2705bf7cc647b13c3cd443bf to your computer and use it in GitHub Desktop.
Save fabiand/dc974f1c2705bf7cc647b13c3cd443bf to your computer and use it in GitHub Desktop.
vlan/bridge DP
Pod VM VM VM
| | |
| | |
| +-----+ |
---------+-+--------------+--------------
| | |
br0 br1 br2
| | |
DP vlan0 vlan1 vlan2
\ | /
\ | /
\ | /
\|/
------------------+----------------------
|
Host eth0
kind: Pod
spec:
containers:
- name: compute
image: virt-launcher
resources:
limits:
vlan-bridge.dp.io/vlan0: 1
kind: VM
spec:
devices:
interfaces:
- name: red
direct: {} # Conection/binding
networks:
- name: red
resource:
withIp: false
# The following two lines are needefd to find the interface inside te pod which gives us access to that requested resource
ifnameEnvVar: "VB_DP_IO_IFNAME_VLAN0"
ifnameGlobEnvVar: "*_VLAN0"
name: vlan-bridge.dp.io/vlan0
- name: blue
multus:
networkName: blue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment