diff --git a/cmd/kubelet/app/server.go b/cmd/kubelet/app/server.go index c84979fd617..7b80cdde30f 100644 --- a/cmd/kubelet/app/server.go +++ b/cmd/kubelet/app/server.go @@ -31,6 +31,7 @@ import ( "path" "path/filepath" "strconv" + "strings" "time" "github.com/coreos/go-systemd/daemon" @@ -207,6 +208,10 @@ HTTP server: The kubelet can also listen for HTTP and respond to a simple API klog.Fatal(err) } + if (kubeletConfig.KubeletCgroups != "" && kubeletConfig.KubeReservedCgroup != "") && (0 != strings.Index(kubeletConfig.KubeletCgroups, kubeletConfig.KubeReservedCgroup)) { + klog.Warning("unsupported configuration:KubeletCgroups is not within KubeReservedCgroup") + } + // use dynamic kubelet config, if enabled var kubeletConfigController *dynamickubeletconfig.Controller if dynamicConfigDir := kubeletFlags.DynamicConfigDir.Value(); len(dynamicConfigDir) > 0 {