Commands icon
If icon
SlackIncomingWebhook icon
Schedule icon

Kubernetes Kubelet Node Hard Eviction Threshold Pressure Sentinel

Audits Kubernetes worker nodes for memory and ephemeral storage eviction pressure to prevent cascading pod evictions.

Categories
CloudInfrastructure

How it works

This workflow scrapes kube-state-metrics (:8080/metrics) to audit kube_node_status_condition across all cluster worker nodes. When a node's available memory, root filesystem, or process ID table drops below kubelet hard eviction thresholds (e.g. memory.available < 100Mi, nodefs.available < 10%), kubelet immediately flags MemoryPressure, DiskPressure, or PIDPressure and stops scheduling new pods. Kubelet then begins aggressively terminating active pods (ranking by QoS class: BestEffort first, then Burstable). This workflow detects node pressure and alerts platform teams before critical services are evicted.

What you get

  • Real-time detection of kubelet hard eviction threshold breaches across worker nodes.
  • Prevents cascading pod evictions and unexpected microservice outages.
  • Comprehensive cluster-wide visibility across all nodes.

Who it's for

  • Kubernetes Platform Engineers and Site Reliability Engineers.
  • DevOps Leads responsible for cluster compute stability and node capacity.

Why orchestrate this with Kestra

  • Continuous Health Auditing: Periodically polls cluster node states without extra monitoring daemons.
  • Decoupled Architecture: Directly accesses standard kube-state-metrics.
  • Instant Team Escalation: Delivers incident notifications with pressure condition counts directly to Slack.

Prerequisites

  • kube-state-metrics installed in the cluster with metrics port accessible.
  • Secret SLACK_WEBHOOK configured in Kestra.

Quick start

  1. Import the blueprint.
  2. Input kube-state-metrics URL.
  3. Run the workflow to inspect worker node pressure conditions.

How to extend

  • Print the specific node names and condition types in the Slack notification body.
  • Trigger an automated node drain and replacement via cloud provider autoscaling APIs.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.