how to have email alert when AKS is not runing?

ante kotarac 0 Reputation points
2023-12-27T09:04:39.2+00:00

I have a simple scenario, I want to be alerted when AKS is down or when all pods are not runing for any reason.

This is simple scenario and looks like mission impossible within azure.

Anayone have solution to this, please help.

Thank you in advance.

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,121 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 24,576 Reputation points
    2023-12-27T12:17:49.4833333+00:00

    Hello @ante kotarac

    Thank you for reaching out to the Microsoft Q&A platform.

    You can use Azure Monitor to create alerts for your AKS cluster when it is down or when all pods are not running

    https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-overview

    https://learn.microsoft.com/en-us/azure/aks/monitor-aks

    Creating alerts rules using action group in azure monitor service helps in triggering alerts. Say for example when the number of pods in your AKS cluster is less than 1, which indicates that all pods are not running. You can configure the notification settings for the action group to receive an email or other notification when the alert is triggered using threshold value for operator less than "1"

    You can also create an alert rule to monitor the health of your AKS cluster. To do this, you can use the "Kubernetes service health" condition and configure the appropriate threshold and notification settings.

    By using Azure Monitor to create alerts for your AKS cluster, you can be notified when there are issues with your cluster or when all pods are not running. This can help you to quickly identify and resolve issues before they impact your applications

    If you are satisfied with the answer, please "Accept as Answer" and give a thumbs up, so that you can help others in the community looking for remediation for similar issues.

    0 comments No comments

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.