mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 23:09:37 +00:00
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>
This commit is contained in:
committed by
Brad Davidson
parent
7dc78d2cee
commit
d2089872bb
@@ -94,6 +94,7 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
|
||||
argsMap["resolv-conf"] = cfg.ResolvConf
|
||||
}
|
||||
if cfg.RuntimeSocket != "" {
|
||||
argsMap["containerd"] = cfg.RuntimeSocket
|
||||
argsMap["serialize-image-pulls"] = "false"
|
||||
checkRuntimeEndpoint(cfg, argsMap)
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
|
||||
argsMap["resolv-conf"] = cfg.ResolvConf
|
||||
}
|
||||
if cfg.RuntimeSocket != "" {
|
||||
argsMap["container-runtime"] = "remote"
|
||||
argsMap["containerd"] = cfg.RuntimeSocket
|
||||
argsMap["serialize-image-pulls"] = "false"
|
||||
checkRuntimeEndpoint(cfg, argsMap)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user