Skip to content

IBM/ITBench-Tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ITBench-Tutorials

Prerequisites

Running with Docker

The agent should always be run in a container in order to prevent harmful commands being run on the user's PC.

  1. Clone the repo.
git clone https://github.com/IBM/ITBench-SRE-Agent
cd ITBench-SRE-Agent
  1. Move the provided kubeconfig file into the root directory of this repo.

  2. Rename the file to just config

  3. Move the provided .env file to the root directory of this repo.

  4. Build the image.

docker build -t itbench-sre-agent --no-cache .
  1. Run the image in interactive mode:
# Mac
docker run --mount type=bind,src="$(pwd)",target=/app/lumyn -e KUBECONFIG=/app/lumyn/config -it itbench-sre-agent /bin/bash
# Linux
docker run --network=host --mount type=bind,src="$(pwd)",target=/app/lumyn -e KUBECONFIG=/app/lumyn/config -it itbench-sre-agent /bin/bash
  1. Grab the observability URL Inside the docker container run:
kubectl get ingress -n prometheus

As an example, you should see:

NAME         CLASS   HOSTS   ADDRESS                                                                   PORTS   AGE
prometheus   nginx   *       ad54bc930b7ec40c38f06be1a1ed0758-1859094179.us-west-2.elb.amazonaws.com   80      10h

Copy the content under the ADDRESS section. This is the value we need in the next step as the value for <observability-url>.

  1. Open the .env file in a text editor
    Update the following values:
  • API_KEY_AGENTS: Provided API key
  • API_KEY_TOOLS: Provided API key
  • OBSERVABILITY_STACK_URL: http://<observability-url>
  • TOPOLOGY_URL: http://<observability-url>/topology
  1. Start the agent:
crewai run

About

Code repository for tutorials as part of ITBench

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •