Add comment per review feedback

pull/6/head
Bryan Boreham 2016-07-28 12:34:21 +01:00 committed by Bryan Boreham
parent 26a53fcd47
commit f21d2dde5a
1 changed files with 6 additions and 0 deletions

View File

@ -428,6 +428,12 @@ func NewMainKubelet(
imageBackOff, imageBackOff,
serializeImagePulls, serializeImagePulls,
enableCustomMetrics, 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", klet.hairpinMode == componentconfig.HairpinVeth && networkPluginName != "kubenet",
seccompProfileRoot, seccompProfileRoot,
containerRuntimeOptions..., containerRuntimeOptions...,