-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Antrea IPAM for secondary networks managed by Multus
Extend Antrea IPAM and Antrea CNI plugin to support IPAM for Pod secondary networks. A CNI call that specifies a non-Antrea CNI type and Antrea IPAM type is identified as an IPAM request for a secondary network. The IPAM configuration of the CNI call should specify the Antrea IPPool(s) to allocate IPs for the secondary network. Additionally, Routes and DNS parameters are supported in the IPAM configuration. This implementation is for secondary network managed by Multus, not Antrea native secondary network support. Only a single IPv4 IPPool is supported as of now. An example Multus NetworkAttachmentDefinition with Antrea IPAM: kind: NetworkAttachmentDefinition metadata: name: macvlan-network1 spec: config: '{ "cniVersion": "0.3.0", "type": "macvlan", "master": "enp0s9", "mode": "bridge", "ipam": { "type": "antrea-ipam", "ippool": "macvlan-subnet1" "routes": [ { "dst": "0.0.0.0/0" }, { "dst": "192.168.0.0/16", "gw": "10.10.5.1" }, { "dst": "3ffe:ffff:0:01ff::1/64" } ], "dns": { "nameservers" : ["8.8.8.8"], "domain": "example.com", "search": [ "example.com" ] } } }' Signed-off-by: Jianjun Shen <shenj@vmware.com>
- Loading branch information
Showing
24 changed files
with
734 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1278,6 +1278,8 @@ spec: | |
properties: | ||
containerID: | ||
type: string | ||
ifName: | ||
type: string | ||
name: | ||
type: string | ||
namespace: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1278,6 +1278,8 @@ spec: | |
properties: | ||
containerID: | ||
type: string | ||
ifName: | ||
type: string | ||
name: | ||
type: string | ||
namespace: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1278,6 +1278,8 @@ spec: | |
properties: | ||
containerID: | ||
type: string | ||
ifName: | ||
type: string | ||
name: | ||
type: string | ||
namespace: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1278,6 +1278,8 @@ spec: | |
properties: | ||
containerID: | ||
type: string | ||
ifName: | ||
type: string | ||
name: | ||
type: string | ||
namespace: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1278,6 +1278,8 @@ spec: | |
properties: | ||
containerID: | ||
type: string | ||
ifName: | ||
type: string | ||
name: | ||
type: string | ||
namespace: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.