mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Always set pod-infra-container-image to protect it from image GC
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
0710a7198a
commit
360f18d1cf
@ -96,7 +96,8 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
|
||||
if cfg.RuntimeSocket != "" {
|
||||
argsMap["serialize-image-pulls"] = "false"
|
||||
checkRuntimeEndpoint(cfg, argsMap)
|
||||
} else if cfg.PauseImage != "" {
|
||||
}
|
||||
if cfg.PauseImage != "" {
|
||||
argsMap["pod-infra-container-image"] = cfg.PauseImage
|
||||
}
|
||||
if cfg.ImageServiceSocket != "" {
|
||||
|
@ -88,7 +88,8 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
|
||||
argsMap["container-runtime"] = "remote"
|
||||
argsMap["serialize-image-pulls"] = "false"
|
||||
checkRuntimeEndpoint(cfg, argsMap)
|
||||
} else if cfg.PauseImage != "" {
|
||||
}
|
||||
if cfg.PauseImage != "" {
|
||||
argsMap["pod-infra-container-image"] = cfg.PauseImage
|
||||
}
|
||||
if cfg.ListenAddress != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user