Installation
Steps to install Harness Delegate and enable chaos.
This topic describes how you can install Harness Delegate and enable chaos on it. You can follow the interactive demo or the steps to install Harness Delegate.
Standard Delegate Installation
This section covers the installation of the standard delegate image.
Prerequisites
Interactive Demo
Navigate through the demo below to see how to create an environment, a new infrastructure, a new connector and a Delegate.
If you have created a connector and a Harness Delegate earlier, you can find their names in the list that is displayed while selecting the connector and Delegate, respectively. Select it instead of creating a new one.
Step-by-Step Installation
Select the Environment you created, and choose the Infrastructure type. In this example, select Kubernetes and click + New Infrastructure.
To use Harness Delegate, select Yes. To use a dedicated chaos infrastructure, select No. In this example, select Yes, and click Next.
Provide a Name, Deployment Type, Select Infrastructure Type, and provide Cluster Details, such as Connector, and Namespace.
a. To create a new connector, go to Create Kubernetes Connector. Harness CE supports creating two types of connectors:
b. While creating a Kubernetes connector, select or create a new Delegate. Once your Delegate shows up in the list, enter its name in the search bar, and select Save and Continue. This will test your connection and describe if it was a success or no. Contact Harness Support if you encounter issues with the verification.
To Enable Chaos and use Configure Advanced Settings (Optional), navigate to Environments and Enable Chaos on the infrastructure you created earlier.

Choose between Beginner or Expert and click Go.

You can choose to provide additional configurations in the Configure Advanced Settings (Optional) section to configure chaos runner and Discovery Agent and click Go. This creates application maps and chaos experiments for you.

Using Delegate-Minimal Image
IMPORTANT
The standard delegate image includes all required binaries for chaos experimentation and discovery out-of-the-box. Use the steps above for standard delegate installation.
If you are using the delegate-minimal image, additional setup is required as described below.
By default, chaos experimentation and discovery are not supported with the delegate-minimal image. The delegate-minimal image does not include kubectl and go-template binaries, which are required for discovery and chaos experimentation.
Prerequisites for Delegate-Minimal
If you are using a delegate-minimal image, you must install kubectl and go-template binaries using one of the following methods:
Option 1: Create a Custom Delegate Image
Create your own custom version of the delegate-minimal image with kubectl and go-template binaries pre-installed.
Option 2: Use INIT_SCRIPT Environment Variable (Recommended)
Provide an installation script in the INIT_SCRIPT environment variable of the delegate deployment:
Harness Terraform Provider
Go to create Harness Delegate (DDCR) to create a Harness Delegate using Harness Terraform provider.
Next Steps
Last updated
Was this helpful?