Running monitor 8 sidecar and dotnet app in k8s #5424
-
Hi, We tested the pizza app (https://github.com/MicrosoftDocs/mslearn-dotnet-kubernetes) together with the dotnet monitor 8 on our kubernetes cluster and it seems to work fine. Port forwarding to 52323 and using postman for http://localhost:52323/processes and the like. Very impressed with the functionality. Ideal for things like prod troubleshooting. However when we try it with our own home made dotnet app we can't seem to connect. We get the error "The runtime has been configured to pause during startup and is awaiting a Diagnostics IPC resumestartup command from a diagnostic port" and "System.ArgumentException: Unable to discover a target process". We use .net 6 and FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine3.16. Same settings as documented for monitor 8 Any idea what could be the reason it goes into this suspend mode? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That's great to hear!
Even when it is all working correctly, your application is briefly suspended at launch to allow .NET Monitor to perform diagnostics from startup, assuming you've set the Assuming you've taken the successful deployment configuration from when you were testing with the pizza app and just swapped out the image to use your own application image, it should work the same. Would you be able to share your deployment where you see the app is still suspended and .NET Monitor cannot find the process? |
Beta Was this translation helpful? Give feedback.
-
To pile on to this rare Google double-hit item, I ran into this same error message, but only in a "real" environment. Of course, the small test environment I was using worked great. The issue was in the pod |
Beta Was this translation helpful? Give feedback.
That's great to hear!