Open
Description
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:
- Azure Kubernetes Cluster
- Single pod running two containers (dotnet app and dotnet monitor)
- 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.
Troubleshooting attempted:
- 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?
Metadata
Metadata
Assignees
Labels
No labels