Home > Blockchain >  Aks ImagePullbackoff not getting alerted in Pending Pods Alert
Aks ImagePullbackoff not getting alerted in Pending Pods Alert

Time:12-02

I had set an alert in azure monitor for pending pods with kube pod phase set to pending in azure monitor. It only get alerted for pending pods and not ImagePullBack and CrashloopbackOFF . is there a way to get alerts for these too.

CodePudding user response:

You can create a custom Alert for CrashLoopBackOff & ImagePullBackOff based on this Kusto Query:

KubePodInventory 
  | where PodStatus == 'Pending'
  | where ContainerStatusReason in ('ErrImagePull','ImagePullBackOff')
  • Related