Commit fa03a0df authored by Erik Wilson's avatar Erik Wilson

Run kubelet with containerd flag

The containerd flag was accidentally added to kubelet and is deprecated, but needed for cadvisor to properly connect with the k3s containerd socket, so adding for now.
parent d14faf95
...@@ -93,6 +93,7 @@ func startKubelet(cfg *config.Agent) { ...@@ -93,6 +93,7 @@ func startKubelet(cfg *config.Agent) {
if cfg.RuntimeSocket != "" { if cfg.RuntimeSocket != "" {
argsMap["container-runtime"] = "remote" argsMap["container-runtime"] = "remote"
argsMap["container-runtime-endpoint"] = cfg.RuntimeSocket argsMap["container-runtime-endpoint"] = cfg.RuntimeSocket
argsMap["containerd"] = cfg.RuntimeSocket
argsMap["serialize-image-pulls"] = "false" argsMap["serialize-image-pulls"] = "false"
} else if cfg.PauseImage != "" { } else if cfg.PauseImage != "" {
argsMap["pod-infra-container-image"] = cfg.PauseImage argsMap["pod-infra-container-image"] = cfg.PauseImage
......
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