Skip to content

[Enhancement] Add --share-volumes to kubectl debug #1820

@specterops-avongluck

Description

@specterops-avongluck

What would you like to be added?

kubectl debug has a --share-processes flag to allow the debug containers to share processes of the debugged (likely distroless) container.

To help enhance debugging distroless containers, it would be nice ™️ if kubectl debug also supported a --share-volumes flag.

Why is this needed?

This flag would attempt attach the currently mounted volumes of the target container to the newly spawned debug container.

There are some situations in-which this could fail, which seems like perfectly valid risk for a debug container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/cliCategorizes an issue or PR as relevant to SIG CLI.

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions