Commit 3e394f8e authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

The Windows kubelet does not accept cadvisor flags

parent c3f830e9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment