-
Notifications
You must be signed in to change notification settings - Fork 802
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR bring V2 API support into win-overlay CNI. With the current V1 API, only docker runtime works for win-overlay. By bringing new changes, we should be able to use containerd as the runtime.Below are the key points regarding this implementation. 1. Clear seperation for V1 & V2 API support 2. New cni.conf sample that works for win-overlay 3. CmdDel path need to be looked into it. Signed-off-by: selansen <[email protected]>
- Loading branch information
selansen
committed
Mar 31, 2022
1 parent
16e4a82
commit b733a9f
Showing
3 changed files
with
164 additions
and
10 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
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"cniVersion": "0.2.0", | ||
"name": "OVNKubernetesHybridOverlayNetwork", | ||
"type": "win-overlay", | ||
"ipam": { | ||
"type": "host-local", | ||
"subnet": "10.132.0.0/24" | ||
}, | ||
"apiVersion": 2, | ||
"capabilities": { | ||
"portMappings": true, | ||
"dns": true | ||
}, | ||
"policies": [ | ||
{ | ||
"name": "EndpointPolicy", | ||
"value": { | ||
"Type": "OutBoundNAT", | ||
"Settings": { | ||
"Exceptions": [ | ||
"172.30.0.0/16" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "EndpointPolicy", | ||
"value": { | ||
"Type": "SDNRoute", | ||
"Settings": { | ||
"DestinationPrefix": "172.30.0.0/16", | ||
"NeedEncap": true | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "EndpointPolicy", | ||
"value": { | ||
"Type": "ProviderAddress", | ||
"Settings": { | ||
"ProviderAddress": "10.0.133.170" | ||
} | ||
} | ||
} | ||
] | ||
} |
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