In the same vein as the command kubectl debug <mypod> --image <myimage>, that adds a new debug container to the existing pod mypod, we would like to support the use case of starting the CDE containers in an existing Pod.
Initially we could should use an attribute to rapidly have the functionality and iterate if there are other things to add (i.e. Pod selector). Pod overrides, init containers etc...should be ignored as the Pod spec should not be changed. Specifying the target-pod-container is critical to support the process namespace sharing that allows attaching the IDE debugger to a process running in that container (this is the parameter --target of kubectl debug).
Description
In the same vein as the command
kubectl debug <mypod> --image <myimage>
, that adds a newdebug
container to the existing podmypod
, we would like to support the use case of starting the CDE containers in an existing Pod.Initially we could should use an attribute to rapidly have the functionality and iterate if there are other things to add (i.e. Pod selector). Pod overrides, init containers etc...should be ignored as the Pod spec should not be changed. Specifying the
target-pod-container
is critical to support the process namespace sharing that allows attaching the IDE debugger to a process running in that container (this is the parameter--target
ofkubectl debug
).Additional context
KCD Austria presentation slides