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

Dotnet-monitor graceful shutdown #6878

Open
agobezy opened this issue Jun 24, 2024 Discussed in #6865 · 1 comment
Open

Dotnet-monitor graceful shutdown #6878

agobezy opened this issue Jun 24, 2024 Discussed in #6865 · 1 comment

Comments

@agobezy
Copy link

agobezy commented Jun 24, 2024

Discussed in #6865

Originally posted by agobezy June 21, 2024
I've been looking into this issue for the entire day and wanted to get some advice.

Environment details:

  1. Azure Kubernetes Cluster
  2. Single pod running two containers (dotnet app and dotnet monitor)
  3. Dotnet monitor image - mcr.microsoft.com/dotnet/monitor:8

Kubernetes allows you to run commands before a pod is terminated. The preStop is working on the dotnet app. The dotnet monitor stops instantly and leads to a server error.

image

image

image

image

Troubleshooting attempted:

  1. Following https://pracucci.com/graceful-shutdown-of-kubernetes-pods.html and setting a terminationGracePeriod of 300 seconds

Can the dotnet monitor process gracefully shutdown instead of terminating instantly?

Copy link
Contributor

Welcome to dotnet-monitor!

Thanks for creating your first issue; let us know what you think of dotnet-monitor by filling out our survey.

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

No branches or pull requests

1 participant