VLAN tagging in the WEKA system
WEKA tenant clusters use VLAN tagging to enable isolated network communication between clusters and their clients.
Overview
WEKA support for IEEE 802.1Q VLAN encapsulation ("tagged VLAN IDs" or "tagged VLANs") enables isolation and segregation of network traffic while still granting connectivity between WEKA clients and backend servers.
A WEKA tenant cluster operates on a single VLAN ID, where all containers within that cluster must use the same VLAN ID. All clients connecting to a tenant cluster must use that cluster's assigned VLAN ID. When using the WEKA Kubernetes Operator, this VLAN ID consistency between the tenant cluster and its clients is automatically maintained.
In multi-cluster environments, each tenant cluster can operate on a different VLAN ID. For example, you can assign VLAN ID 100 to Tenant Cluster A and VLAN ID 200 to Tenant Cluster B, providing network isolation between clusters.
Enable WEKA tagged VLAN support
To enable WEKA tagged VLAN support, add the desired VLAN IDs to the switch ports connected to WEKA backends. It is common to include one untagged VLAN and multiple tagged VLAN IDs.
After configuring the switch, update the Linux system interfaces to recognize the VLAN IDs and verify connectivity.
Procedure
Assign a VLAN tag to a network interface Associate a VLAN tag with a NIC using the following command:
Example:
Add a VLAN interface Infer the VLAN tag by adding a VLAN interface:
Example:
Apply configuration changes Restart all containers to apply the VLAN configuration updates.
Mount filesystems with tagged VLANs
Basic VLAN tagging
Mount a filesystem with a specified NIC and VLAN tag:
Example:
Extended network configuration
Include gateway, IP, and netmask for advanced configurations:
Example:
Syntax guidelines:
Include additional named parameters (for example,
gw@
,ip@
,netmask@
) directly in the command syntax.Alternatively, use the legacy style by specifying name-value pairs after the positional parameters.
Separate all parameters using
/
.
This syntax is also supported for the weka local setup container --net ...
command.
Last updated