mirror of https://github.com/k3s-io/k3s
Add comment per review feedback
parent
26a53fcd47
commit
f21d2dde5a
|
@ -428,6 +428,12 @@ func NewMainKubelet(
|
|||
imageBackOff,
|
||||
serializeImagePulls,
|
||||
enableCustomMetrics,
|
||||
// If using "kubenet", the Kubernetes network plugin that wraps
|
||||
// CNI's bridge plugin, it knows how to set the hairpin veth flag
|
||||
// so we tell the container runtime to back away from setting it.
|
||||
// If the kubelet is started with any other plugin we can't be
|
||||
// sure it handles the hairpin case so we instruct the docker
|
||||
// runtime to set the flag instead.
|
||||
klet.hairpinMode == componentconfig.HairpinVeth && networkPluginName != "kubenet",
|
||||
seccompProfileRoot,
|
||||
containerRuntimeOptions...,
|
||||
|
|
Loading…
Reference in New Issue