Enable for IPVLAN

IPVLAN

Following example shows how to create Network Attachment definition for IPVLAN

Create Network Attach Definition ipvlan type

Please copy paste the following definition update the values of your subnet and apply it to our cluster:

YAML
Copy

The master key value is the reference to the *second nic * in our worker nodes.

Network Attach Definition Validation ipvlan type

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

Bash
Copy
Bash
Copy

Create Pods with ipvlan interfaces

YAML
Copy
YAML
Copy

Deploy the new pods

Bash
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.

Validate Pods Creation with ipvlan 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

East-West ipvlan traffic

Bash
Copy
Bash
Copy

North-South ipvlan traffic:

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