add warnings on using pod-infra-container-image for remote container runtime

pull/8/head
Di Xu 2018-04-23 11:27:52 +08:00
parent a048ca888a
commit de6544b0fa
1 changed files with 4 additions and 0 deletions

View File

@ -169,6 +169,10 @@ HTTP server: The kubelet can also listen for HTTP and respond to a simple API
glog.Fatal(err)
}
if kubeletFlags.ContainerRuntime == "remote" && cleanFlagSet.Changed("pod-infra-container-image") {
glog.Warning("Warning: For remote container runtime, --pod-infra-container-image is ignored in kubelet, which should be set in that remote runtime instead")
}
// load kubelet config file, if provided
if configFile := kubeletFlags.KubeletConfigFile; len(configFile) > 0 {
kubeletConfig, err = loadConfigFile(configFile)