Enable MACVLAN

MacVLAN type definition

Create Network Attach-Definition macvlan type

YAML
Copy

The master key value is the reference to the *_second nic *_in our worker nodes.

Bash
Copy

Network Attach Definition Validation macvlan type

Let’s validate our work by listing and describing our new Network Attach Definition

Bash
Copy
YAML
Copy

Pod Definitions with 2 interfaces

In order for pods to be created with an additional nic, and the same principle applies for adding more than two NICs to the pod, the pod definition should be called with network annotations making reference to the Network Attach Definition(s) please use the following pods definitions to create a testbed.

Create Pods with mcvlan interfaces

YAML
Copy
YAML
Copy

Deploy the new pods

Bash
Copy

Validate Pods Creation with macvlan interfaces

Let’s validate your work by confirming that the pods got created with an additional interface by doing the following commands:

Bash
Copy
Bash
Copy

Connectivity Testing

East-West macvlan traffic

Bash
Copy
Bash
Copy

North-South macvlan traffic:

Bash
Copy
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard