-
Notifications
You must be signed in to change notification settings - Fork 801
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 Signed-off-by: selansen <esiva@redhat.com>
- Loading branch information
selansen
committed
Apr 6, 2022
1 parent
16e4a82
commit f30799f
Showing
3 changed files
with
176 additions
and
13 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