You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have a pod with two containers, e.g. example1 and example2
Mount a ConfigMap into the example1 container with a name that contains example2
Attempt to profile the example2 container
Observed
You might actually choose the example1 container
Desired
If you specify a container you get that container
More info
We have a pod with containers named app and multiplexer, and a config map with the key app_env.json. I took a look at the mountinfo for one of the processes in the multiplexer container, and cross referencing with this logic I believe this line is being incorrectly matched on:
As a result, I try to profile the app container but end up with data from the multiplexer container.
Maybe it should be stricter about matching e.g. /<pod_id>/containers/<container_name>/ ... I don't know how much of an assumption this is about the internals of the kubelet this is.
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
example1
andexample2
example1
container with a name that containsexample2
example2
containerObserved
example1
containerDesired
More info
We have a pod with containers named
app
andmultiplexer
, and a config map with the keyapp_env.json
. I took a look at themountinfo
for one of the processes in the multiplexer container, and cross referencing with this logic I believe this line is being incorrectly matched on:this is the line it's probably trying to match:
As a result, I try to profile the
app
container but end up with data from themultiplexer
container.Maybe it should be stricter about matching e.g.
/<pod_id>/containers/<container_name>/
... I don't know how much of an assumption this is about the internals of the kubelet this is.The text was updated successfully, but these errors were encountered: