mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Merge pull request #72671 from yanghaichao12/dev0108
validate KubeletCgroups and KubeReservedCgroup
This commit is contained in:
commit
92042fe6ea
@ -215,6 +215,10 @@ HTTP server: The kubelet can also listen for HTTP and respond to a simple API
|
|||||||
klog.Fatal(err)
|
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
|
// use dynamic kubelet config, if enabled
|
||||||
var kubeletConfigController *dynamickubeletconfig.Controller
|
var kubeletConfigController *dynamickubeletconfig.Controller
|
||||||
if dynamicConfigDir := kubeletFlags.DynamicConfigDir.Value(); len(dynamicConfigDir) > 0 {
|
if dynamicConfigDir := kubeletFlags.DynamicConfigDir.Value(); len(dynamicConfigDir) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user