| 1 | |
| 2 | template: k8s_state_deployment_condition_available |
| 3 | on: k8s_state.deployment_conditions |
| 4 | class: Error |
| 5 | type: Kubernetes |
| 6 | component: Deployment |
| 7 | every: 10s |
| 8 | units: status |
| 9 | calc: $available |
| 10 | warn: $this == 0 |
| 11 | delay: down 5m |
| 12 | summary: Deployment ${label:k8s_deployment_name} does not have the minimum required replicas |
| 13 | info: Deployment ${label:k8s_deployment_name} does not have the minimum required replicas |
| 14 | to: silent |
| 15 | |
| 16 | template: k8s_state_cronjob_last_execution_failed |
| 17 | on: k8s_state.cronjob_last_execution_status |
| 18 | class: Error |
| 19 | type: Kubernetes |
| 20 | component: CronJob |
| 21 | every: 10s |
| 22 | units: status |
| 23 | calc: $failed |
| 24 | warn: $this == 1 |
| 25 | delay: down 5m |
| 26 | summary: CronJob ${label:k8s_cronjob_name} in ${label:k8s_namespace} failing |
| 27 | info: CronJob ${label:k8s_cronjob_name} in ${label:k8s_namespace} failing |
| 28 | to: sysadmin |