Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for kubectl debug scenarios #4971

Open
wiktork opened this issue Jul 23, 2023 · 1 comment
Open

Add support for kubectl debug scenarios #4971

wiktork opened this issue Jul 23, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@wiktork
Copy link
Member

wiktork commented Jul 23, 2023

It is currently possible to cross file namespace boundaries in Aks using kubectl debug. I.e.

kubectl debug $pod --image mcr.microsoft.com/dotnet/monitor:7 --env Logging__Console__FormatterName=simple --target $app --share-processes --image-pull-policy Always -it -- /app/dotnet-monitor collect --no-auth --urls http://localhost:52323 --metrics false

It is necessary to prefix /proc/<pid>/<user>/tmp to the IpcRoot location as well as the default dump storage path. For dotnet-monitor 8, the image will not work against root apps since it still uses its default non-root security context.

@wiktork wiktork added the enhancement New feature or request label Jul 23, 2023
@wiktork
Copy link
Member Author

wiktork commented Nov 21, 2023

We can also potentially support dotnet-monitor running as a DaemonSet with a host mounted /proc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant