Skip to content

Use of native SidecarContainers (init container with restartPolicy: Always) results in pod status getting stuck on Init #3366

@martynd

Description

@martynd

K8s 1.29 enables the SidecarContainers feature gate by default (more info on the native sidecars here https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/)
These are defined as initContainers with the restartPolicy set to Always

This change in logic results in pods being perpetually (visually) stuck in the Init phase

This appears to have affected various software which interacts with k8s, eg the following issue on k9s
derailed/k9s#2520

Screenshots
Screenshot 2024-02-13 at 11 07 29 AM

Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions