-
Notifications
You must be signed in to change notification settings - Fork 992
[Enhancement] Add --share-volumes to kubectl debug #1820
Copy link
Copy link
Open
kubernetes/kubernetes
#135950Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.sig/cliCategorizes an issue or PR as relevant to SIG CLI.Categorizes an issue or PR as relevant to SIG CLI.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.sig/cliCategorizes an issue or PR as relevant to SIG CLI.Categorizes an issue or PR as relevant to SIG CLI.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Type
Projects
Status
Needs Triage
What would you like to be added?
kubectl debughas 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.