Deploy the dynamic infrastructure agent

The dynamic infrastructure agent connects your Openshift or Kubernetes cluster to NeoLoad Web through outbound-only connections. This setup is more secure than client-based providers because your cluster doesn't expose inbound API access. Once the agent is running, you can create an agent-based infrastructure provider in NeoLoad Web to automatically provision controllers and load generators for your load tests.

Before you start

Make sure you have the following:

Deploy the agent

Use the Neotys Helm chart to deploy the agent. It configures the agent so that NeoLoad Web can interact with your Kubernetes cluster. To deploy the agent, follow these steps:

  1. Add the Neotys Helm repository:

    helm repo add neotys https://helm.prod.neotys.com/stable/

    helm repo update

  2. Download the values file from the Neotys-Labs GitHub repository (opens in new tab):

    wget https://raw.githubusercontent.com/Neotys-Labs/helm-dynamic-infrastructure/master/values-custom.yaml

  3. Update the values-custom.yaml file with your configuration. For available options, check out Configuration reference.

  4. Install the Helm chart:

    helm install my-release neotys/nlweb-dynamic-infrastructure --create-namespace -n my-namespace -f ./values-custom.yaml --set agent.neoloadWebApiToken=YOUR_TOKEN

Pass sensitive values like your API token with --set on the command line. Don't store them in the values file.

Create an agent-based infrastructure provider

Once your agent is deployed, create an infrastructure provider for load testing:

  1. In NeoLoad Web, go to Settings > Resources > Infrastructure providers.

  2. Select Add provider, then select Agent-based.

  3. In the Add agent-based infrastructure provider dialog, configure the following:

    • Provider name: Define a name for this provider.

    • Available agents: Select the agent you deployed. The agent appears here once it connects to NeoLoad Web.

    • Namespace: This field is read-only. It displays the Kubernetes namespace where the agent is deployed.

  4. Select Add.

Your infrastructure provider is now ready. You can select it when you configure dynamic zones for your tests.

Uninstall the agent

To uninstall the agent, run the following command:

helm uninstall my-release -n my-namespace

Configuration reference

This section explains the parameters you can configure in your values-custom.yaml file to customize your agent deployment.

The agent deployment requires one replica because only one agent with the same ID can connect to NeoLoad Web at a time. Multiple replicas will cause concurrency issues.

What's next?

Now that you've deployed your dynamic infrastructure agent, you can do the following: