Agentic AI

Overview

Teaching: 20 min
Exercises: 20 min
Questions
  • How do I quickly develop and deploy agents in Kubernetes?

  • How do multi-agent systems communicate?

Objectives
  • Learn about developing AI agents

  • Learn about connecting AI agents to MCP servers

  • Learn about deploying AI systems to Kubernetes

Agentic AI

Openrouter

  1. Sign up for an OpenRouter account here
  2. New users receive a small free allowance
  3. Pick one of the free models listed here, e.g. google/gemma-4-31b-it:free, openai/gpt-oss-20b:free or nvidia/nemotron-3-super-120b-a12b:free.

Currency Agent

git clone https://github.com/srbdev/adk_currency_agent.git
cd adk_currency_agent
cp .env.example .env
vim .env
  1. Update OPENAI_API_BASE with https://openrouter.ai/api/v1
  2. Update OPENAI_API_KEY with your key
  3. Update OPENROUTER_MODEL with your model ID
uv sync
uv run currency_agent

Client

git clone https://github.com/srbdev/currency_client.git
cd currency_client
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt

uv run python cli.py --url http://localhost:10999

Enter a user prompt to make sure that the backend agent is correctly bootstrap with the LLM.

Kubernetes

  1. Update deployment.yaml with env variables (as done in previous steps)
  2. Deploy agent
kubectl create namespace NAME
kubectl apply -f deployment.yaml -n NAME

kubectl port-forward svc/currency-agent-service 10999:10999 -n NAME
  1. Restart client

MCP

git clone https://github.com/srbdev/currency_mcp.git
cd currency_mcp
kubectl apply -f deployment.yaml -n NAME

Update Agent

git checkout with-remote-mcp

# If `git` complains about overwritting changes in `deployment.yaml`
git stash
git checkout with-remote-mcp
git stash pop
# make sure no conflicts in `deployment.yaml`
  1. Update MCP_SERVER_HTTP_URL with Service IP address from MCP server, using the format http://IP:8080/mcp
kubectl get services -n NAME
# and copy `CLUSTER-IP` for `currency-mcp-service` row

kubectl delete deployments/currency-agent -n NAME
kubectl apply -f deployment.yaml -n NAME
kubectl port-forward svc/currency-agent-service 10999:10999 -n NAME
  1. Restart client

Example Prompts

Find the list of supported EU currencies and show the exchange rate with USD in markdown format
how much is 10 USD in CAD?
how did the EUR value fluctuate against USD from jan 1st, 2026 to now?

Key Points