mirror of https://github.com/k3s-io/k3s
39 lines
521 B
Go
39 lines
521 B
Go
|
//go:build linux
|
||
|
// +build linux
|
||
|
|
||
|
package flannel
|
||
|
|
||
|
const (
|
||
|
cniConf = `{
|
||
|
"name":"cbr0",
|
||
|
"cniVersion":"1.0.0",
|
||
|
"plugins":[
|
||
|
{
|
||
|
"type":"flannel",
|
||
|
"delegate":{
|
||
|
"hairpinMode":true,
|
||
|
"forceAddress":true,
|
||
|
"isDefaultGateway":true
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type":"portmap",
|
||
|
"capabilities":{
|
||
|
"portMappings":true
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type":"bandwidth",
|
||
|
"capabilities":{
|
||
|
"bandwidth":true
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
`
|
||
|
|
||
|
vxlanBackend = `{
|
||
|
"Type": "vxlan"
|
||
|
}`
|
||
|
)
|