mirror of https://github.com/k3s-io/k3s
Fix issue with containerd stats missing from cadvisor metrics
cadvisor still doesn't pull stats via CRI yet, so we have to continue to use the deprecated arg. Signed-off-by: Brad Davidson <brad.davidson@rancher.com>pull/5833/head
parent
7dc78d2cee
commit
d2089872bb
|
@ -94,6 +94,7 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
|
||||||
argsMap["resolv-conf"] = cfg.ResolvConf
|
argsMap["resolv-conf"] = cfg.ResolvConf
|
||||||
}
|
}
|
||||||
if cfg.RuntimeSocket != "" {
|
if cfg.RuntimeSocket != "" {
|
||||||
|
argsMap["containerd"] = cfg.RuntimeSocket
|
||||||
argsMap["serialize-image-pulls"] = "false"
|
argsMap["serialize-image-pulls"] = "false"
|
||||||
checkRuntimeEndpoint(cfg, argsMap)
|
checkRuntimeEndpoint(cfg, argsMap)
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
|
||||||
argsMap["resolv-conf"] = cfg.ResolvConf
|
argsMap["resolv-conf"] = cfg.ResolvConf
|
||||||
}
|
}
|
||||||
if cfg.RuntimeSocket != "" {
|
if cfg.RuntimeSocket != "" {
|
||||||
argsMap["container-runtime"] = "remote"
|
argsMap["containerd"] = cfg.RuntimeSocket
|
||||||
argsMap["serialize-image-pulls"] = "false"
|
argsMap["serialize-image-pulls"] = "false"
|
||||||
checkRuntimeEndpoint(cfg, argsMap)
|
checkRuntimeEndpoint(cfg, argsMap)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue