Skip to main content
Redhat Developers  Logo
  • Products

    Platforms

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat AI
      Red Hat AI
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • View All Red Hat Products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat Developer Hub
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat OpenShift Local
    • Red Hat Developer Sandbox

      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Secure Development & Architectures

      • Security
      • Secure coding
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • Product Documentation
    • API Catalog
    • Legacy Documentation
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Unleash controlled chaos with krknctl

August 21, 2025
Tullio Sebastiani
Related topics:
Automation and managementCI/CDContainersDevOpsDevSecOpsLinuxKubernetesMicroservicesSecurity
Related products:
Red Hat OpenShift

Share:

    Imagine testing your system’s resilience by triggering CPU overloads, memory hogging, or service disruptions without risking disaster. With krknctl, this isn’t just a dream. It’s a practical reality for engineers, DevOps professionals, and chaos enthusiasts alike. Built as a powerful command-line interface (CLI) for orchestrating krkn chaos scenarios using container images from krkn-hub, krknctl simplifies complexity and empowers you to explore your system’s limits. 

    In this article, we’ll dive deep into why krknctl is a must-have tool, its standout features, and how it can transform your chaos engineering workflows.

    Krknctl is a game-changer

    Krknctl isn’t just another chaos engineering tool. It’s a streamlined, user-friendly solution that abstracts the intricacies of container runtimes (i.e., Podman or Docker) so you can focus on testing, learning, and building resilient systems. Here’s what sets krknctl apart:

    • Instant autocompletion: With a double tap of the tab key, krknctl suggests commands and descriptions, enhancing your experience on Bash (Linux) or Zsh (macOS). It’s like having an intelligent assistant by your side!
    • Ironclad input validation: Forget typos or errors—krknctl validates your inputs, ensuring every command executes flawlessly.
    • Dynamic graph orchestration: Use a dependency resolution algorithm to run scenarios serially, in parallel, or in mixed configurations. Define complex execution plans with a simple JSON file, unlocking endless testing possibilities.
    • Versatile container support: Seamlessly works with Podman or Docker, leveraging Unix sockets for integration. If both runtimes are installed, it defaults to Podman—your choice, your control.
    • Innovative metadata management: One of krknctl’s coolest and most unique features is its metadata backend. Unlike traditional tools, krknctl exclusively uses standard registry APIs and OCI labels from krkn-hub images to manage scenario metadata. This approach eliminates the need for external databases and web services, making it lightweight, scalable, and truly original, only image registry needed.
    • Security-focused image flexibility: As backend, krknctl supports Quay with official krkn-hub images and private registries, giving you unparalleled flexibility for mission-critical use cases. For scenarios where security is paramount, you can mirror krkn-hub images into your own private registry, ensuring full control over your chaos engineering environment. This security-conscious makes krknctl a standout tool for organizations prioritizing data sovereignty and compliance.

    Ready-to-use builds

    One of krknctl’s biggest advantages is you don’t need to build it from scratch. Pre-compiled binaries are available on GitHub for:

    • macOS: Intel and Apple Silicon architectures
    • Linux: x86_64 and ARM support

    This means you can download the right build for your system, install it in seconds, and start orchestrating chaos immediately—no Go compiler or build dependencies required. It’s a frictionless onboarding experience, perfect for developers eager to dive into chaos engineering without delay.

    Putting krknctl to work

    Let’s explore krknctl in action. Suppose you want to test your system’s resilience against multiple disruptions—say, CPU, memory, I/O, and service hijacking. Here’s how you can scaffold and run a serial execution plan:

    ./krknctl graph scaffold node-cpu-hog node-memory-hog node-io-hog service-hijacking > plan.json
    <edit the plan.json file to tweak the scenario parameters>
    ./krknctl graph run plan.json 

    This generates a JSON execution plan, runs the scenarios, and logs detailed output of each scenario to files like krknctl-<scenario>-<id>-<timestamp>.log. 

    Want to monitor progress? Use attach <scenario-ID> to reconnect to the container’s output. 

    For parallel execution, leverage the dummy-scenario as a root node, allowing all dependent scenarios to run concurrently, which is ideal for stress-testing at scale.

    Another common use case is querying the status of running scenarios. With query-status <container-ID>, you can integrate krknctl into CI/CD pipelines to halt execution if a chaos run fails, ensuring reliability at every step. Thanks to its metadata approach of pulling scenario details directly from krkn-hub’s OCI labels, you get consistent, up-to-date information without additional setup.

    Choose krknctl for your chaos journey

    In a world where system resilience is non-negotiable, krknctl offers a competitive edge. It abstracts container runtime complexities, provides flexible graph-based orchestration, and delivers an accessible experience for beginners and experts alike. The innovative use of standard registry APIs and OCI labels for metadata management sets it apart, offering a lightweight, scalable solution that’s unique in the chaos engineering space. Plus, with pre-built binaries for major platforms, you’re ready to start testing in minutes—whether you’re on a MacBook Pro (Intel or Apple Silicon) or a Linux server (x86_64 or ARM).

    A note on maturity: krknctl is currently in beta, so use it at your own risk. But don’t let that deter you. This is your chance to shape a tool that’s evolving rapidly, backed by a vibrant community at krkn-chaos.

    Getting started: Your fast track to chaos

    Ready to harness controlled chaos? Follow these steps:

    1. Download the binary: Head to the GitHub releases page and grab the pre-built version for your platform (macOS Intel/Apple Silicon, Linux x86_64/ARM).
    2. Install dependencies: Ensure you have Podman or Docker, plus system-specific tools like words (for random dictionaries on Linux) or gpgme (via Homebrew on macOS).
    3. Enable autocompletion: Check the documentation for the autocompletion setup on your favorite shell.
    4. Explore commands: Try list available, describe node-cpu-hog, or graph scaffold to unlock krknctl’s potential.
    5. Explore the documentation.

    Building resilient systems with krknctl

    Krknctl isn’t just a tool, it’s a catalyst for dreaming big about resilient, chaos-tested systems. Whether you’re a curious newcomer or a seasoned chaos engineer, this CLI empowers you to experiment, innovate, and push boundaries. From serial executions to parallel stress tests, krknctl gives you the flexibility to simulate real-world failures and build unbreakable architectures, leveraging its unique metadata approach to keep your scenarios organized and cutting-edge.

    Take a look at the video demo.

    krknctl in action (Demo video)
    Tue, 06/17/2025 - 09:44
    tsebasti
    See krknctl in action.

    Join the krkn-chaos community today, download a pre-built binary, and start your chaos engineering journey. The future of resilient systems is chaotic, and with krknctl, you’ll be ready to lead the charge.

    Related Posts

    • Istio Chaos Engineering: I Meant to Do That

    • Where can I download the OpenShift command line tool?

    • Common architectural elements for modern integration architectures (Part 2)

    Recent Posts

    • Kubernetes MCP server: AI-powered cluster management

    • Unlocking the power of OpenShift Service Mesh 3

    • Run DialoGPT-small on OpenShift AI for internal model testing

    • Skopeo: The unsung hero of Linux container-tools

    • Automate certificate management in OpenShift

    What’s up next?

    Download the OpenShift command-line essentials cheat sheet for developers to discover the most useful commands for working with the oc CLI.

    Get the cheat sheet
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    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
    © 2025 Red Hat

    Red Hat legal and privacy links

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

    Report a website issue