Back to blog

Kubernetes alerts without a Prometheus stack: restarts, failing pods, node pressure and expiring certificates

December 1, 2026 9 min read Kubexer Team
AlertsMonitoringNotificationsCertificates

On a production cluster with an operations team, alerting is Prometheus, Alertmanager and an on-call rotation. On a staging cluster, a side project, a small company's single cluster, or the namespace you own inside someone else's cluster, it is often nothing at all. You find out a pod has been crash-looping for two days when someone asks why the feature is broken.

Kubexer's Cluster Alerts, a Pro feature, fill that gap from the desktop: rules you define in the app, evaluated against the live cluster while the app runs, with notifications on your desktop, by email and on your phone. This post covers what it can watch, how to set it up, and, just as important, where it stops.

How it works, in one paragraph

Alert rules are evaluated by the Kubexer desktop app, using its own watches on the cluster, for every cluster you are connected to. The app keeps running in the system tray when you close the window, so alerts keep working while the window is hidden. They do not run when the app is quit, and nothing is evaluated on a server. That is the trade-off: zero setup in the cluster, in exchange for depending on a running desktop app.

What you can alert on

Open Cluster Alerts in the sidebar and click New alert. Every alert has a name, a severity (info, warning or critical) and a resource group. The group decides which triggers are available:

  • Pod
    • Phase: a pod enters a phase, optionally from a given phase. Default: enters Failed.
    • Restarts: restart count compared to a value, either in total or within a time window. Default: >= 5.
    • Metric: CPU or memory usage as a percentage of request or limit, or an absolute value, sustained for a number of seconds. Default: CPU >= 90% of limit.
  • Workload (Deployments, StatefulSets, DaemonSets, ReplicaSets)
    • Condition: Available, Progressing or ReplicaFailure has a given status. Default: Available is False.
    • Replicas: available, ready or updated replicas compared to a number, or to a fraction of desired replicas.
  • Node: Condition (Ready, MemoryPressure, DiskPressure, PIDPressure, NetworkUnavailable) or Metric (CPU or memory against allocatable).
  • Event: Warning events with given reasons, such as BackOff, Failed, seen at least a minimum number of times.
  • Certificate: TLS Secrets and cert-manager Certificates that are about to expire (warning under 30 days and critical under 7 by default) or have expired.

The Target section narrows the rule: namespaces (empty means all), names with commas and globs such as api-*, worker, and optional labels.

Three rules worth creating first

1. Something is crash-looping

Name:      Pod restarting
Group:     pod          Severity: critical
Target:    namespaces: shop, payments   names: *
Trigger:   Restarts  >= 3   Window: 600 sec

With a window, the rule fires on restarts within the last ten minutes, so a pod that restarted three times last month does not keep tripping it.

2. A Deployment is not fully available

Name:      Deployment degraded
Group:     workload     Severity: warning
Trigger:   Replicas  available < 1.0  (fraction of desired)
Advanced:  Notify on recovery: on

Using a fraction means the same rule works for a 2-replica and a 20-replica Deployment. Notify on recovery sends a second notification when it is healthy again, so you know when to stop worrying.

3. A certificate is about to expire

Name:      TLS expiring
Group:     certificate  Severity: warning
Trigger:   Certificate expiring  warn < 21 days, critical < 5 days

Each certificate notifies once per level, warning first and then critical, rather than every day.

You do not always have to start from a blank form. The detail drawers of Pods, Deployments, StatefulSets, DaemonSets, ReplicaSets and Nodes have a bell button, Set alerts, that opens a new alert with the group, namespace and name already filled in.

How you get notified

  • In the app: a toast, plus a Recent list on the Cluster Alerts page that survives restarts.
  • Desktop notifications: your operating system's native notifications, on by default.
  • Email: through Kubexer's mail service to your account address, or through your own SMTP server to any address, such as a team inbox.
  • Phone: fired alerts are sent to the Kubexer mobile apps you have signed in on, as push notifications.

Global defaults live in Settings → Notifications, with a button to send a test. Each alert can override them under Notifications → Override defaults, so a critical rule can email the team while an info rule only shows on your desktop.

Noise control is built in. Alerts fire when an object enters the alerting state, not on every check. A cooldown (300 seconds by default, 24 hours for certificates) stops the same alert on the same object from repeating, and it is remembered across restarts. Metric rules have a Sustain period so a brief CPU spike does not page you.

Alert rules are saved to your account and synced, so they follow you to your other devices.

Requirements and limits

  • The desktop app must be running and connected to the cluster. Hidden in the tray is fine; quit is not. This is the main difference from server-side monitoring.
  • Metric triggers need metrics-server in the cluster. Without it they do nothing.
  • Event alerts react to Warning events that arrive while the app is connected. They do not replay older events.
  • There are no Slack, PagerDuty or webhook integrations, no log-based alerts and no PromQL.
  • Alerts need a cluster with a stable API server URL in its kubeconfig, which is how Kubexer tells clusters apart.

When to use what

If a cluster runs revenue-critical workloads and someone is on call, you need monitoring that runs inside the cluster and does not depend on a laptop being open. Use Prometheus and Alertmanager, or a hosted service. Cluster Alerts are for the rest: development and staging clusters, the namespaces you own, certificate expiry you would otherwise forget, and the gap between "we have no alerting" and "we have a monitoring team". They also work well alongside a full stack, as a personal layer for the things you specifically care about.

Try it

Cluster Alerts are part of Pro in Kubexer, and included in the free trial. Create the three rules above, send a test notification, and install the mobile app if you want alerts on your phone. When an alert fires, debugging CrashLoopBackOff is a good next read.