Is it possible to monitor or to get mails alerts while a pod in down? How to set the alert?
It depends if you want to use open source apps or you want to use paid software for monitoring and alerting.
As @FL3SH advised most used software to monitor and sending alerts is Prometheus
and Alertmanager
. This solution have many tutorials online "how to", for example this one.
However there are many other paid software to monitor your cluster/pods
, alert you, create history diagrams etc. (like datadog, sysdig, Dynatrace) or mixed solutions (like Prometheus and Grafana, cAdvisor, Kibana, etc.) For more information you can check this article.
Please note that each cloud provider offers some specific monitoring features.
Yes, it possible you have to setup Prometheus with Alertmanager.
I recommend using prometheus-operato as an easier way to start with monitoring.