mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
The Windows kubelet does not accept cadvisor flags
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
c3f830e9b9
commit
3e394f8ec5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user