docker - kubernetes deployment notification to slack channel using webhook
问题描述
I have set up the notification for cloud build CI/CD which is pushing notification to a respective slack channel.
After a successful build that image push to kubernetes cluster and rolling update strategy followed by deployment.
So I want to push notification when new pod become ready and old pod terminated so that time gets an idea about new changes applied to deployment.
Note : I am using GKE cluster but not installed Prometheus due to resource limits.
解决方案
There are multiple ways of doing this, I can think of two ways right now:
- Use Prometheus + Alert manager to send you a slack notification when pods became ready.
- Use CI/CD pipeline to continuously check for the status of the pods, once they are updated successfully, send a notification.
Hope this answers your question.
EDIT: If you would like to stick to using stackdriver, then there is a solution for it as well: https://kubernetes.io/docs/tasks/debug-application-cluster/events-stackdriver/
推荐阅读
- cypher - Bloodhound Cypher:否定 CanRDP
- c++ - 在findSquares Opencv中删除重复的Square
- angular - Angular CLI 从 6 升级到 7 不起作用
- c# - 使用 foreach 循环复制数组时出现异常
- blob - 有没有办法从循环中生成多个 PDF 并将它们存储而不将文件保存到磁盘?
- jackson - 缺少工件 com.fasterxml.jackson.core:jackson-databind:bundle:2.9.8
- php - PHP:单引号问题下的双引号
- django - Django 部署工具
- python - 如何在两个正在运行的 python 程序之间交换字符串?
- assembly - 用于编译成自定义机器语言的工具包