-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples notification for CrashLoopBackOff & CronJob failure
- Loading branch information
1 parent
edd1f3c
commit 38503d4
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
mission-control/docs/notifications/examples/kube-job-failing.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: Kubernetes Job Failing | ||
--- | ||
|
||
```yaml title="cronjob-alerts.yaml" | ||
--- | ||
apiVersion: mission-control.flanksource.com/v1 | ||
kind: Notification | ||
metadata: | ||
name: cronjob-alerts | ||
namespace: default | ||
spec: | ||
events: | ||
- config.unhealthy | ||
to: | ||
connection: connection://flanksource-slack | ||
filter: config.type == 'Kubernetes::CronJob' | ||
``` |
19 changes: 19 additions & 0 deletions
19
mission-control/docs/notifications/examples/kube-podcrashlooping.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: PodCrashLooping notification | ||
--- | ||
|
||
```yaml title="podcrashlooping-alerts.yaml" | ||
--- | ||
apiVersion: mission-control.flanksource.com/v1 | ||
kind: Notification | ||
metadata: | ||
name: podcrashlooping-alerts | ||
namespace: default | ||
spec: | ||
events: | ||
- config.unhealthy | ||
filter: config.type == 'Kubernetes::Pod' && config.status == 'CrashLoopBackOff' | ||
to: | ||
# use the slack connection as the recipient for this notification | ||
connection: connection://flanksource-slack | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters