The agent should always be run in a container in order to prevent harmful commands being run on the user's PC.
- Clone the repo.
git clone https://github.com/IBM/ITBench-SRE-Agent
cd ITBench-SRE-Agent-
Move the provided kubeconfig file into the root directory of this repo.
-
Rename the file to just
config -
Move the provided
.envfile to the root directory of this repo. -
Build the image.
docker build -t itbench-sre-agent --no-cache .- 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- Grab the observability URL Inside the docker container run:
kubectl get ingress -n prometheusAs 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>.
- Open the
.envfile in a text editor
Update the following values:
API_KEY_AGENTS: Provided API keyAPI_KEY_TOOLS: Provided API keyOBSERVABILITY_STACK_URL:http://<observability-url>TOPOLOGY_URL:http://<observability-url>/topology
- Start the agent:
crewai run