health-probes

Configure Kubernetes liveness, readiness, and startup probes with lifecycle hooks.

47|5|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/RedHatProductSecurity/prodsec-skills --skill health-probes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: health-probes
Source: https://github.com/RedHatProductSecurity/prodsec-skills/tree/main/module/skills/health-probes
Command: npx skills add https://github.com/RedHatProductSecurity/prodsec-skills --skill health-probes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires kubernetes, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers configure and manage Kubernetes health checks and lifecycle hooks, ensuring reliable container uptime and graceful termination.

Core Features & Use Cases

  • Health Probes Configuration: Define liveness, readiness, and startup probes for containers to detect failures and readiness states.
  • Lifecycle Hooks Management: Set up postStart and preStop hooks to run custom initialization and cleanup scripts during container lifecycle events.
  • Use Case: During deployment of a critical microservice, ensure it can self-report health status and perform cleanup tasks before shutdown to minimize downtime and errors.

Quick Start

Use the health-probes skill to review a pod spec with configured health checks and lifecycle hooks.

Frequently Asked Questions about health-probes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Kubernetes health probes for containers?

Kubernetes lifecycle hooks manage container events by setting up postStart and preStop handlers. These execute custom initialization and cleanup scripts, enabling graceful shutdowns and minimizing deployment errors for critical microservices.

When do I need startup probes versus liveness and readiness probes?

Startup probes are needed when containers have slow initialization times to prevent premature restarts. Liveness probes detect running failures, while readiness probes control traffic routing, together ensuring high reliability for production workloads.

What is the best way to enable graceful shutdown in Kubernetes pods?

The best way to enable graceful shutdown in Kubernetes pods is configuring preStop lifecycle hooks. This runs custom cleanup scripts before termination, allowing critical microservices to minimize downtime and errors during shutdown.

Does Kubernetes support custom scripts for container lifecycle events?

Kubernetes supports custom scripts for container lifecycle events through postStart and preStop hooks. These handlers execute initialization and cleanup procedures directly within your container lifecycle to maintain high availability.