vm-hosts: Expose storage VLAN to VMs

To improve the performance of persistent volumes accessed directly from
the Synology by Kubernetes pods, I've decided to expose the storage
network to the Kubernetes worker node VMs.  This way, iSCSI traffic does
not have to go through the firewall.

I chose not to use the physical interfaces that are already directly
connected to the storage network for this for two reasons: 1) I like
the physical separation of concerns and 2) it would add complexity to
the setup by introducing a bridge on top of the existing bond.
frigate-exporter
Dustin 2024-06-21 22:11:27 -05:00
parent 6520b86958
commit 7201f7ed5c
1 changed files with 31 additions and 0 deletions

View File

@ -14,6 +14,9 @@ libvirt_networks:
- name: kube - name: kube
type: bridge type: bridge
bridge_iface: kube bridge_iface: kube
- name: storage
type: bridge
bridge_iface: storage
storage_host: storage0.pyrocufflink.blue storage_host: storage0.pyrocufflink.blue
shared_volume_mount_packages: shared_volume_mount_packages:
- nfs-utils - nfs-utils
@ -62,6 +65,13 @@ vmhost_netdevs:
Kind: vlan Kind: vlan
VLAN: VLAN:
Id: 60 Id: 60
- name: 51-vlan64
NetDev:
Description: Storage network (VLAN 64)
Name: vlan64
Kind: vlan
VLAN:
Id: 64
- name: 52-vlan101 - name: 52-vlan101
NetDev: NetDev:
Description: pyrocufflink.red network (VLAN 101) Description: pyrocufflink.red network (VLAN 101)
@ -104,6 +114,11 @@ vmhost_netdevs:
Description: Kubernetes VM network bridge Description: Kubernetes VM network bridge
Name: kube Name: kube
Kind: bridge Kind: bridge
- name: 60-storage
NetDev:
Description: Storage VM network bridge
Name: storage
Kind: bridge
vmhost_networks: vmhost_networks:
- name: 40-bond0 - name: 40-bond0
@ -117,6 +132,7 @@ vmhost_networks:
- vlan1 # pyrocufflink.blue - vlan1 # pyrocufflink.blue
- vlan10 # Management - vlan10 # Management
- vlan60 # Kubernetes - vlan60 # Kubernetes
- vlan64 # Storage
- vlan101 # pyrocufflink.red - vlan101 # pyrocufflink.red
- vlan102 # Cameras - vlan102 # Cameras
- name: 40-bond1 - name: 40-bond1
@ -155,6 +171,14 @@ vmhost_networks:
DHCP: 'no' DHCP: 'no'
LinkLocalAddressing: 'no' LinkLocalAddressing: 'no'
Bridge: kube Bridge: kube
- name: 51-vlan64
Match:
Name: vlan64
Network:
Description: Storage network
DHCP: 'no'
LinkLocalAddressing: 'no'
Bridge: storage
- name: 52-vlan101 - name: 52-vlan101
Match: Match:
Name: vlan101 Name: vlan101
@ -186,6 +210,13 @@ vmhost_networks:
Description: Kubernetes network bridge Description: Kubernetes network bridge
DHCP: 'no' DHCP: 'no'
LinkLocalAddressing: 'no' LinkLocalAddressing: 'no'
- name: 60-storage
Match:
Name: storage
Network:
Description: Storage network bridge
DHCP: 'no'
LinkLocalAddressing: 'no'
- name: 60-mgmt - name: 60-mgmt
Match: Match:
Name: mgmt Name: mgmt