Quickstart
Run your first chaos experiment in minutes with Harness Chaos Engineering
Use this guide to set up and run your first chaos experiment on target infrastructure.
Before you begin
Review these resources and requirements:
Key concepts: Understand chaos engineering concepts.
What's supported: Confirm supported platforms and capabilities.
Target infrastructure: Access a Kubernetes cluster, Linux machine, or cloud environment.
You need the following:
Harness account: Sign up if you do not have one.
Target infrastructure: Use a Kubernetes cluster with
kubectlaccess or a Linux machine with administrator privileges.Permissions: Get administrator access to install chaos agents.
Access Harness Chaos Engineering
To access Harness Chaos Engineering:
Sign up or log in to your Harness account.
In the left navigation, navigate to the Chaos Engineering module.
Create a project or ask your administrator to add you to an existing project.
Create an environment
A chaos experiment is executed in an infrastructure that is associated with an environment.
To create an environment:
Navigate to Environments, then click New Environment.
Enter the environment name, description, and tags.
Select Production or Non-Production.
Click Create.

Set up chaos infrastructure
After you create an environment, add infrastructure to it.
Kubernetes
To add Kubernetes infrastructure:
In your environment, click New Infrastructure.
Select Kubernetes.
Select an installation mode:
Cluster-wide access: Target resources across all namespaces.
Specific namespace access: Restrict chaos injection to a namespace.
Copy and run the installation command in your cluster:
Wait until the infrastructure shows the CONNECTED status.
Linux
To add Linux infrastructure:
Click New Infrastructure, then select Linux.
Download and install the chaos agent:
Create your first chaos experiment
Create and run your first chaos experiment. Start with Pod Delete because it has a small blast radius.
Identify your target
Identify the target for your experiment:
Identify the microservice that you will target.
For Kubernetes, select a pod from your application.
Pod delete: Start with this experiment.

Create the experiment
Create the experiment:
Navigate to Chaos Experiments, then click New Experiment.
Select Blank Canvas or a Template.
Configure the following fields:
Name:
My First Pod Delete ExperimentDescription:
Testing pod resilienceTags: Enter tags that organize the experiment.
Add a chaos fault
Add and configure the chaos fault:
In the experiment builder, click Add Fault.
Select Kubernetes → Pod → Pod Delete.
Configure the following fields:
Target Pods: Select pods or use label selectors.
Chaos Duration: Enter
30seconds.Force: Set this to
falsefor graceful deletion.
Add resilience probes
Probes validate your hypothesis during the experiment. Add an HTTP probe:
Click Add Probe.
Select HTTP Probe.
Configure the following fields:
URL: Enter your application endpoint.
Method: Select
GET.Success Criteria: Enter response code
200.Run Properties: Select execution during chaos.
Run your first experiment
Run and monitor the experiment:
Review the experiment configuration.
Save the experiment.
Click Run.
Monitor the following:
The experiment timeline.
Probe results.
System metrics and logs.

Analyze results
After the experiment completes, review the following:
Resilience Score: Review the overall system resilience rating.
Probe Results: Check health-check results during chaos.
Timeline: Review experiment execution phases.
Logs: Review execution logs for troubleshooting.

Understand results
Use these results to assess system resilience:
Passed probes: Your application handled the chaos.
Failed probes: Identify areas that need improvement.
Resilience score: Higher scores indicate greater resilience.
Quick onboarding options
Harness Chaos Engineering offers two onboarding methods:
Automated onboarding
Automated onboarding provides the following:
One-click setup: Creates an environment, discovers services, and runs experiments.
Minimal decisions: Harness Chaos Engineering handles most configuration.
Resilience scores: View resilience scores after experiments run.
Guided onboarding
Guided onboarding provides the following:
Step-by-step guidance: Walk through each step with options.
More control: Customize each step while receiving guidance.
Learning focus: Understand the process while you configure it.
To access onboarding, navigate to Chaos Engineering → Overview, then select Select a cluster.
Common first experiments
Use these experiments to begin resilience testing:
Pod Delete for Kubernetes
Purpose: Test application resilience to pod failures.
Fault: Pod Delete.
Duration:
30seconds.Success Criteria: The service remains available, and new pods start quickly.
CPU Stress for Linux and Kubernetes
Purpose: Test application behavior under CPU pressure.
Fault: CPU Stress.
CPU Load:
80%.Duration: two minutes.
Success Criteria: Application performance degrades gracefully.
Network latency
Purpose: Validate application behavior under network delays.
Fault: Network Latency.
Latency:
100ms.Duration: one minute.
Success Criteria: Timeouts are handled gracefully.
Next steps
You have run your first chaos experiment. Use these resources next:
Chaos faults: Try different types of chaos faults.
Probes: Configure monitoring.
GameDays: Organize chaos engineering events.
CI/CD integration: Automate chaos testing in pipelines.
Last updated
Was this helpful?