diff --git a/pkg/daemons/agent/agent_linux.go b/pkg/daemons/agent/agent_linux.go index 23f7b46a6438..5e22fbc085f7 100644 --- a/pkg/daemons/agent/agent_linux.go +++ b/pkg/daemons/agent/agent_linux.go @@ -112,9 +112,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 eb020afdb8e5..69995f5e9f7e 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 }