diff --git a/pkg/daemons/agent/agent_linux.go b/pkg/daemons/agent/agent_linux.go index ead7507aee73..5b4540078f2e 100644 --- a/pkg/daemons/agent/agent_linux.go +++ b/pkg/daemons/agent/agent_linux.go @@ -98,9 +98,6 @@ func kubeletArgs(cfg *config.Agent) map[string]string { argsMap["container-runtime-endpoint"] = socketPrefix + cfg.RuntimeSocket } } - if cfg.PauseImage != "" { - argsMap["pod-infra-container-image"] = cfg.PauseImage - } if cfg.ImageServiceSocket != "" { if strings.HasPrefix(cfg.ImageServiceSocket, socketPrefix) { argsMap["image-service-endpoint"] = cfg.ImageServiceSocket diff --git a/pkg/daemons/agent/agent_windows.go b/pkg/daemons/agent/agent_windows.go index 36a5f505658a..7ad41b5f94f3 100644 --- a/pkg/daemons/agent/agent_windows.go +++ b/pkg/daemons/agent/agent_windows.go @@ -81,9 +81,6 @@ func kubeletArgs(cfg *config.Agent) map[string]string { argsMap["container-runtime-endpoint"] = socketPrefix + cfg.RuntimeSocket } } - if cfg.PauseImage != "" { - argsMap["pod-infra-container-image"] = cfg.PauseImage - } if cfg.ListenAddress != "" { argsMap["address"] = cfg.ListenAddress }