Notifications - how to inform when health degraded application returned to healthy #14089
Unanswered
luciano-buono
asked this question in
Q&A
Replies: 1 comment
-
Did you found any solution? I also want to add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a need for the following workflow:
An application is deployed succesfully and is
on-sync
andhealthy
.Then, for X reason, a pod enters into a
CrashLoopBackoff
and the Application health goes intoProgressing
for 10mins.As the error persist, the health state goes into
degraded
.Sometimes the error could be a commit with an incorrent image tag so kubernetes can't find the image to pull.
So, in the next commit this is fixed and the application health goes into
healthy
.I need to trigger a notification when the application health goes into
degraded
, easy to do with the trigger:but then I need a way to know when the issue was resolved.
A trigger of the like
when: app.status.health.status == 'Healthy'
would send a notification all time the status goes from
progressing
tohealthy
so it would spam the channel with useless info, not only informing that an error was resolvedSo I would need a way of adding
oncePer
that tracks if it was indegraded
beforeAny help?
Beta Was this translation helpful? Give feedback.
All reactions