The Windows kubelet does not accept cadvisor flags

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Brad Davidson 2022-08-23 19:26:32 +00:00 committed by Brad Davidson
parent c3f830e9b9
commit 3e394f8ec5

View File

@ -81,9 +81,6 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
}
if cfg.RuntimeSocket != "" {
argsMap["serialize-image-pulls"] = "false"
if strings.Contains(cfg.RuntimeSocket, "containerd") {
argsMap["containerd"] = cfg.RuntimeSocket
}
// cadvisor wants the containerd CRI socket without the prefix, but kubelet wants it with the prefix
if strings.HasPrefix(cfg.RuntimeSocket, socketPrefix) {
argsMap["container-runtime-endpoint"] = cfg.RuntimeSocket