def METHOD_NAME(
    namespace: str, api_key: str, agent_image: Optional[str]
):
    """Deploy the agent in provided cluster namespace."""
    create_config_files(api_key, agent_image)
    run_cmd("kubectl apply -f tests/release_tests/test_launch/launch-config.yml")
    run_cmd("kubectl apply -f tests/release_tests/test_launch/launch-agent.yml")
    setup_cleanup_on_exit(namespace)