mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
0c9bf36fe0
* initial windows port. Signed-off-by: Sean Yen <seanyen@microsoft.com> Signed-off-by: Derek Nola <derek.nola@suse.com> Co-authored-by: Derek Nola <derek.nola@suse.com> Co-authored-by: Wei Ran <weiran@microsoft.com>
60 lines
1.2 KiB
Go
60 lines
1.2 KiB
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package flannel
|
|
|
|
const (
|
|
cniConf = `{
|
|
"name":"flannel.4096",
|
|
"cniVersion":"1.0.0",
|
|
"plugins":[
|
|
{
|
|
"type":"flannel",
|
|
"capabilities": {
|
|
"portMappings": true,
|
|
"dns": true
|
|
},
|
|
"delegate": {
|
|
"type": "win-overlay",
|
|
"apiVersion": 2,
|
|
"Policies": [{
|
|
"Name": "EndpointPolicy",
|
|
"Value": {
|
|
"Type": "OutBoundNAT",
|
|
"Settings": {
|
|
"Exceptions": [
|
|
"%CLUSTER_CIDR%", "%SERVICE_CIDR%"
|
|
]
|
|
}
|
|
}
|
|
}, {
|
|
"Name": "EndpointPolicy",
|
|
"Value": {
|
|
"Type": "SDNRoute",
|
|
"Settings": {
|
|
"DestinationPrefix": "%SERVICE_CIDR%",
|
|
"NeedEncap": true
|
|
}
|
|
}
|
|
}, {
|
|
"name": "EndpointPolicy",
|
|
"value": {
|
|
"Type": "ProviderAddress",
|
|
"Settings": {
|
|
"ProviderAddress": "%IPV4_ADDRESS%"
|
|
}
|
|
}
|
|
}]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
`
|
|
|
|
vxlanBackend = `{
|
|
"Type": "vxlan",
|
|
"VNI": 4096,
|
|
"Port": 4789
|
|
}`
|
|
)
|