
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> Signed-off-by: mansikulkarni96 <mankulka@redhat.com>
46 lines
864 B
Plaintext
46 lines
864 B
Plaintext
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |