Skip to content

stop using the kubelet flag --pod-infra-container-image in kubeadm #3108

@neolit123

Description

@neolit123

this is a pending TODO from:

but the flag has proven problematic as it was also used to pin the pause image and prevent the kubelet GC from collecting it.
logic was added in kubelet, CRI and container runtimes to support this (but has a bug in containerd).

tracking issue in k/k;

some related PRs:

according to this commented we can only remove the flag completely when containerd version 2.0+ becomes widely used:

bug outlined here:


pending AIs are:

  • remove the flag from the kubelet in release X
    TODO
  • remove the flag when kubeadm deploys kubelet X, for other kubelets down to X-3 we must continue to pass the flag
    TODO
  • remove the flag when kubeadm upgrades to kubelet X?
    TODO

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliarea/kubeletlifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.priority/backlogHigher priority than priority/awaiting-more-evidence.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions