Add Resilience Tests to Harness CD Pipeline
Easily add chaos engineering to your CD pipelines with auto-suggested experiments
Add Resilience Tests to Harness CD Pipeline
The One-Click Harness CD Onboarding feature makes it incredibly easy for Harness CD customers to add resilience testing to their existing pipelines with just one click. The system automatically analyzes your cluster, identifies deployed services, determines appropriate chaos experiments for each service, creates chaos steps with the exact parameters needed, and integrates them directly into your CD pipeline.
Overview
The automated workflow includes:
Cluster Analysis: Scans your target cluster to understand the infrastructure
Service Discovery: Identifies all deployed services and their configurations
Experiment Matching: Determines which chaos experiments are appropriate for each service
Parameter Configuration: Creates chaos steps with exact parameters tailored to your services
Pipeline Integration: Automatically adds the configured chaos steps directly into your CD pipeline
Prerequisites
Before using One-Click CD Onboarding, ensure you have:
Harness Continuous Delivery: Active access to the Harness CD module
Harness Chaos Engineering: Active access to the Harness Chaos Engineering module
Getting Started
Navigate to Execution History of your pipeline.
Go to Resilience Tests tab of your pipeline and click on Add Resilience Tests to this Pipeline.

Add Resilience Tests to Pipeline The system will automatically perform the following workflow:
Check Infrastructure: Verifies if chaos experiments are already available for your infrastructure
Auto-Discovery: If not chaos-enabled, the system discovers services and creates chaos experiments for the infrastructure
Create Custom Stage: Automatically creates a new "Resilience Tests" stage in your pipeline
Add Chaos Experiments: Automatically adds the appropriate chaos experiments to the custom stage in your pipeline

Add Resilience Tests to Pipeline
Review the Resilience Tests Added summary:
Pipeline: Shows which pipeline the tests were added to (e.g., "cd-deployment - test")
Resilience Tests: Lists the specific chaos experiments created (e.g., "nginx-deployment-pod-delete-vhf7p")
Targeted Service: Shows the service being tested (e.g., "nginx-deployment")
Target Infrastructure: Displays the infrastructure where tests will run (e.g., "testenv64new/testinfra")
Click View in Pipeline to see the updated pipeline with the new resilience tests stage

Resilience Tests Added
Run the Updated Pipeline:
You'll now see your pipeline with the new Resilience Testing stage automatically added between your deployment stages
The pipeline shows the complete flow: deployment → resilience testing → additional stages
Click the Run button to execute the pipeline with chaos experiments included
The resilience tests will run automatically as part of your CD workflow

Run Updated Pipeline
Next Steps
After successful onboarding, enhance your chaos engineering practice:
Chaos Engineering
Create Custom Chaos Experiments - Build experiments tailored to your specific failure scenarios
Explore Chaos Faults - Discover available fault types for your experiments
Configure Chaos Probes - Add health checks and validation to your experiments
Learn about Actions - Execute custom operations, delays, and scripts during experiments
Last updated
Was this helpful?