Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure AKS: Find out why node was restarted

From time to time a node gets restarted in ou Azure Kubernetes service. I see that under the Activity Log of that vm (in the azure portal):

  • Restart Virtual Machine, Event initiated by "ClusterServicePrincipal"

What is the best way to find out, why kubernetes restarted this node?

Thanks for your help.

Regards, Peter

like image 816
Peter Wyss Avatar asked Jan 18 '26 21:01

Peter Wyss


1 Answers

Check logs of Kubernetes service in Azure Portal and run AzureActivity query, this should give you the reason of the restart.

enter image description here

Btw. You can login to node, but there are no logs from the previous instance, so it's useless.

like image 143
kenorb Avatar answered Jan 21 '26 10:01

kenorb