If you are no longer using a Link Agent for testing, you can shut it down from the mabl app or the mabl CLI.
Once you remove a Link Agent, you cannot start it back up from the mabl app. If your goal is to temporarily stop routing traffic through Link, see our instructions on disabling mabl Link for a test environment.
Shutting down mabl Link
Before you shut down a mabl Link Agent, take a moment to review the Tunnels table in Settings > Networking. If the agent is associated with a mabl environment, make sure the environment settings are updated to either not use a Link Agent or to use a different active Link Agent. Otherwise tests running in those environments will start to fail.
After confirming the agent is ready to shut down, remove the agent from the Link Agents table on the networking page: Manage > Shut down.
Location of the shut down button
You can also shut down Link Agents using the mabl CLI or the mabl API:
-
mabl CLI: use the
mabl link-agents terminatecommand. - mabl API: use the terminate link agent endpoint
Note
If a Link Agent manages multiple tunnels, shutting down any one of those tunnels causes the Link Agent to shut down and close all of its managed tunnels.
Terminating Kubernetes-based Link Agents
If you shut down a Kubernetes-based Link Agent from the mabl app, the Kubernetes deployment will spawn a replacement Link Agent within seconds to maintain your specified number of replicas. Similarly, pod-based Link Agents attempt to restart based on their Restart Policy.
To terminate a Kubernetes-based Link Agent, use the kubectl delete command:
- For pod-based Link Agents:
kubectl delete pod mabl-link-agent -n {YOUR-NAMESPACE} - For deployment-based Link Agents:
kubectl delete deployment mabl-link-agent-deployment -n {YOUR-NAMESPACE}