Skip to main content
AI
  • Get started with AI

    • Red Hat AI

      Accelerate the development and deployment of enterprise AI solutions.

    • AI learning hub

      Explore learning materials and tools, organized by task.

    • AI interactive demos

      Click through scenarios with Red Hat AI, including training LLMs and more.

    • AI/ML learning paths

      Expand your Red Hat OpenShift AI knowledge using these learning resources.

    • AI quickstarts

      Focused AI use cases designed for fast deployment on Red Hat AI platforms.

    • No-cost AI training

      Foundational Red Hat AI training.

  • Featured resources

    • Red Hat OpenShift AI
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

Red Hat AI Factory with NVIDIA

Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.

Learn
  • Self-guided

    • Documentation

      Find answers, get step-by-step guidance, and learn how to use Red Hat products.

    • Learning paths

      Explore curated walkthroughs for common development tasks.

    • Guided learning

      Receive custom learning paths powered by our AI assistant.

    • See all learning
  • Hands-on

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

    • Interactive labs

      Learn by doing in these hands-on, browser-based experiences.

    • Interactive demos

      Click through product features in these guided tours.

  • Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics
  • Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
Build
  • Get started

    • Red Hat build of Podman Desktop

      A downloadable, local development hub to experiment with our products and builds.

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

  • Download products

    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products
  • Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset
  • References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
Community
  • Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions
  • Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github
  • Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

Join the Red Hat Developer program

Download Red Hat products and project builds, access support documentation, learning content, and more.

ConsoleDocsSupport Search
New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

  • Product downloads
  • Cheat sheets
  • Red Hat Developer learning portal
  • Developer blog
  • E-books
  • Developer Sandbox
Log in

Get more with a Red Hat Developer account

  • Product downloads
  • Console access
  • Event registration
  • Training & trials
Explore more account benefitsLog in or register

A subscription may be required for some services.

Contact us

Building Kubernetes resilience with Krkn: A 4-phase chaos engineering blueprint

A phased guide to chaos testing for resilience and stability

October 22, 2026
Naga Ravi Chaitanya Elluri
Related topics:
ContainersVirtualization
Related products:
Red Hat OpenShift

    Chaos engineering tests whether applications and platforms can maintain service during disruption and recover within agreed limits. Controlled failures help you find and fix weaknesses before they affect production.

    This article recommends 4 phases of chaos testing with Krkn, as illustrated in figure 1:

    1. Strategize
    2. Execute and harden
    3. Explore
    4. Future-proof and integrate![Four phases of chaos engineering: Strategize, Execute & Harden, Explore with Krkn-AI, and Future-Proofing and CI, with feedback into the test plan.
    4 phases of continuous resilience validation, with findings feeding back into the test plan.
    Figure 1: Phases of continuous resilience validation, with findings feeding back into the test plan.

    Start with a service, then expand coverage as your tests mature. Save validated experiments as repeatable workflows to check resilience before releases and infrastructure change.

    Phase 1: Strategize

    In this phase, you define the resilience baseline. Choose a critical user journey, such as completing a transaction. Bring developers, platform engineers, and operations teams together to map its compute, network, storage, and service dependencies. Use past incidents and planned changes to prioritize failures.

    Measure normal behavior under representative load, then translate service-level objectives (SLOs) into test criteria. Set limits and measurement windows for request success, latency, throughput, data correctness, and recovery time.

    Write a hypothesis linking the failure to expected behavior. For example:

    If one API pod fails, transactions continue and the expected replica count recovers within 60 seconds.

    You might require at least 99% successful requests and p99 latency below 500 milliseconds in each complete 60-second window, with no lost or duplicate acknowledged transactions. Choose limits that fit your service. A short test doesn't establish monthly availability compliance.

    Choose a representative non-production environment with the workload and monitoring needed to measure these outcomes. Agree on targets, fault duration, stop conditions, and a recovery owner.

    Use the Krkn Chaos Testing Guide to turn these decisions into a test plan with measurable acceptance criteria.

    Phase 2: Execute and harden

    In this phase, you validate recovery and resolve weaknesses. Start with a small, controlled disruption, such as losing one pod. Follow the Krkn installation documentation, then inspect scenarios and their parameters:

    krknctl list available
    krknctl describe pod-scenarios (for example)

    Use a consistent sequence for each experiment:

    1. Prepare: Configure the target namespace and resources, and establish a healthy baseline under load.

    2. Disrupt and observe: Inject the fault, confirm it reached the target, and measure degradation and recovery against the agreed criteria.

    3. Restore and verify: Remove remaining fault effects and confirm cleanup before the next run.

    A pod may return while transactions still fail because connections to a dependency have not recovered. Investigate the cause, adjust retries or readiness checks as needed, and replay under comparable load to verify the fix. Other tests may reveal placement or capacity gaps.

    Measure recovery through the service users depend on. A Ready pod does not prove that transactions succeed. For Red Hat OpenShift Virtualization, check the guest application alongside virtual machine (VM) and host health. Krkn SLO validation uses Prometheus checks to help determine run results; add application checks for transaction correctness.

    Make repeatability part of the first test. Keep the test setup and success criteria in version control, and record each run's targets and results. Reset the environment and test data between runs, agree on how many runs must pass, and retain failures to spot intermittent issues.

    Phase 3: Explore

    Use Krkn-AI to uncover hidden failure paths. Its evolutionary algorithms explore experiments and evaluate their impact through SLOs and application health checks.

    Discover cluster components, then customize the generated configuration with permitted targets, scenarios, SLOs, and time and recovery limits. Explore latency, packet loss, storage disruption, and resource pressure, including combinations such as worker loss under load.

    Retain configurations, actual targets, parameters, and seeds where supported so you can reproduce findings. Verify each fix, then turn the discovery into a regression test in a saved Chaos Studio workflow. Keep exploration separate from release qualification so release comparisons use consistent scenarios.

    Phase 4: Future-proof and CI

    You want to continuously validate resilience before change. You do this by building workflows.

    Build reusable workflows with Krkn Operator

    Use Krkn Operator to save and replay workflows. Chaos Studio provides a visual editor for sequential or parallel scenarios, with target clusters, access controls, execution, and results in one console.

    To turn validated experiments into a reusable workflow (see figure 2):

    1. Define the sequence: Configure scenarios and supporting files, allowing recovery between independent tests. Use parallel faults for deliberate combinations.

    2. Add service checks: Enable resilience scoring and attach PromQL checks for expected service behavior.

    3. Save the workflow: Keep the exact configuration used for each qualification run so it can be replayed.

    A conceptual Chaos Studio workflow: save, replay, score, and compare before promoting changes.
    Figure 2: A conceptual Chaos Studio workflow: save, replay, score, and compare before promoting changes.

    For Red Hat Advanced Cluster Management for Kubernetes, the integration can discover managed clusters. Follow the Krkn Operator Developer Preview article for setup.

    Integrate stable workflows into CI/CD: Short checks with relevant builds, broader tests nightly, and the required suite before releases or infrastructure changes.

    Use dedicated or reserved environments to prevent interference between jobs. Start checks in reporting mode, then make them blocking once reliable. Verify the gate with a known failure: Missed faults, missing measurements, and incomplete required scenarios must not count as passes.

    Track resilience scores and recovery trends

    Run the validated workflow on a known-good environment to establish a baseline. Krkn's resiliency scoring measures the percentage of weighted SLO checks passing during the chaos window. Default weights are 3 for critical checks and 1 for warnings, with custom weights supported. 5 critical and 5 warning checks total 20 points. 1 failed warning yields 95%. Scoring is beta, so pin the implementation and scoring profile.

    Use the score alongside mandatory service and recovery checks. Set a minimum score and an acceptable regression threshold. Require data integrity and timely recovery, including checks beyond the scoring window.

    Track scenario results, coverage, failed checks, and recovery times alongside the score. Keep workloads and scoring rules consistent. Establish a new baseline when coverage or scoring changes. The score describes tested conditions, not every possible outage.

    Validate every significant change before rollout

    Use resilience workflows as pre-flight checks. Test the current configuration, apply the candidate change in staging, and replay under comparable load. Compare results with the baseline and acceptance criteria before rollout, adding scenarios relevant to the change:

    • OpenShift or platform upgrade: Service continuity, worker loss, dependency failures, recovery
    • Application or dependency release: Replica loss, timeouts, retries, reconnection, transaction correctness
    • Performance tuning: CPU, memory, I/O pressure, remaining capacity during failover
    • Configuration change: Probes, limits, placement, timeouts, network policies
    • New machines or VM migration: Host and guest health, storage and network behavior, service continuity during movement
    • Infrastructure or topology change: Path failures, failure-domain loss, data integrity, recovery capacity

    For upgrades and migrations, rehearse the transition itself where relevant. A fresh installation exercises a different path. Choose faults suited to the platform and available permissions.

    Suppose CPU tuning passes the score threshold but increases recovery after worker loss from 38 to 78 seconds. With a 60-second recovery requirement, block promotion, address the cause, and rerun the workflow. Attach the before-and-after evidence to the change record.

    After rollout, verify production service health and continue scheduled validation. Any disruptive production experiment needs its own agreed scope and recovery procedure.

    Put the approach into practice

    Choose 1 critical service and 1 failure to test. Agree on success criteria, fix what the experiment reveals, and save the validated test in Chaos Studio. Schedule repeat runs to build resilience into the way you make changes.

    Join the Krkn community to discuss use cases, share what you learn, and collaborate on building more resilient systems.

    Related Posts

    • Kubernetes chaos engineering at scale: Krkn Operator Developer Preview in Red Hat Advanced Cluster Management

    • Type what you want to break: AI-assisted chaos engineering with Krkn

    • Krkn-AI: A feedback-driven approach to chaos engineering

    • Unleash controlled chaos with krknctl

    • Enhancing system resilience with Krkn chaos dashboard

    Recent Posts

    • What's new for developers in Red Hat Enterprise Linux 10.3 and 9.9

    • Control multicluster costs with right-sizing in Red Hat Advanced Cluster Management 5

    • Lightbits is now certified for Red Hat OpenStack Services on OpenShift

    • What's new in Red Hat OpenShift 5 for developers

    • On-demand screen context in Red Hat Developer Hub intelligent assistant

    Red Hat Developers logo

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    Red Hat Developer

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility
    Ask AI