Skip to content

Kubectl debug - allow to specify image pull secretΒ #1671

Open
kubernetes/kubernetes
#131130
@mb-stx

Description

@mb-stx

This is a Feature Request

What would you like to be added
Add new option to kubectl debug command to be able to specify image pull secret. Currently (v 1.31) there is only the option to specify image and image pull policy, but image pull secret is missing.

Why is this needed
When running in air-gapped environments images are pulled from internal repositories often by using credentials. In this case kubectl debug command is not usable, because image is not publicly available and it fails with ImagePull error. In general this will allow to debug pods in more restricted environments.

Comments

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiarea/kubectlkind/featureCategorizes issue or PR as related to a new feature.priority/backlogHigher priority than priority/awaiting-more-evidence.sig/cliCategorizes an issue or PR as relevant to SIG CLI.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions