k3s/pkg/agent/flannel/setup_linux.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"
}`
)