[AKS] A pod running on a Windows container in AKS is frequently restarting without a clear cause.

Hiền Lê 10 Reputation points
2025-02-13T10:58:02.32+00:00

Issue Description: A pod running on a Windows container in AKS is frequently restarting without a clear cause.

Error Details:

  • The last recorded state shows that the pod terminated with exit code -1073741819 (0xC0000005)
  • The pod started at Tue, Feb 4, 2025, 9:01:33 PM and terminated at Tue, Feb 4, 2025, 10:00:50 PM.
  • The issue persists across multiple restarts, making it difficult to identify the root cause.
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,317 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,726 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Markapuram Sudheer Reddy 1,170 Reputation points Microsoft External Staff
    2025-02-14T10:51:56.16+00:00

    Hi Hiền Lê,

    Thank You for reaching out to Microsoft Q&A forum.

    Based on above error query, As per my understanding the issue you are facing is the container inside pod is keeps on restarting.

    kubectl logs <pod-name> --previous
    
    

    Can you please try to execute above command which will retrieves logs from the last terminated container instance within the pod. Please share complete logs to investigate in detail.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.