- Install a minimal KAgent deployment (with a provided
01-values-min). - Expose the KAgent UI.
- Create an AWS Pricing MCP Server via the UI.
- Create an AWS Well-Architected Security MCP Server via a manifest.
- Verify the MCP servers and view their exposed tools.
01-values-min file has been provided.
The values file used below enables only the minimal components required to run KAgent and disables optional agents. This reduces resource usage while you work through the lab.
Minimal values file (01-values-min)
Use the following values to install KAgent with minimal components enabled:
Inspect KAgent pods and services
Confirm pods and services in thekagent namespace:
30080), patch the kagent-ui service:
Running:
AWS credentials used by MCP servers
MCP servers require AWS credentials (or other supported credential delivery methods). In this lab environment, credentials are stored at/root/.aws/credentials:
us-east-1.
MCP servers support multiple credential delivery methods (plain keys, IAM roles, etc.). Follow security best practices for credential handling and avoid checking credentials into source control.
Install AWS Pricing MCP Server via the KAgent UI
- Ensure the KAgent UI is accessible (port-forward or use the NodePort you set, e.g.,
30080). - Open the KAgent UI in your browser (use the lab environment link or Node IP + NodePort).
- In the UI:
- Click Create → New MCPServer.
- Click Add MCP Server.
- Enter the server name exactly:
AWS Pricing MCP Server. - Namespace:
kagent(default). - Choose the “Command” option (not URL).
- Command executor: select
uvx(Python-based executor). - Package name:
awslabs.aws-pricing-mcp-server@latest. - Provide environment variables copied from
/root/.aws/credentialsusing these exact keys:AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_REGION(for example,us-east-1)
False readiness while images are pulling:
True and the pod is Running:
False, inspect events, pod describe, and pod logs:
Install AWS Well-Architected Security MCP Server via manifest
Create a file namedmcp-server.yaml with the following MCPServer manifest. Populate AWS credentials in the env section before applying:
port (must remain 3000) or the transportType (stdio) — these are required by the package.
Steps:
- Edit
mcp-server.yamland setAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYwith values from/root/.aws/credentials. - Apply the manifest:
Viewing tools exposed by an MCP Server in the UI
In the KAgent UI:- Click the MCPServer entry, then click View → Tools.
- Each MCP Server lists how many tools it exposes. Example:
- AWS Well-Architected Security MCP Server — may show
6tools. - AWS Pricing MCP Server — may show
9tools.
- AWS Well-Architected Security MCP Server — may show
- Click the number to inspect individual tools exposed by the MCP Server.
Notes and troubleshooting tips
- Environment variables must use the exact key names required by the package:
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_REGION. uvxruns Python-based packages. Some packages may usenpx(npm). Choose the executor that matches the package.- Image pulls and container initialization can take time. Use
kubectl logs,kubectl describe, andkubectl get -wto monitor readiness. - For persistent issues, inspect controller logs:
Links and references
- KAgent: Host Your AI Agents on Kubernetes (course): https://learn.kodekloud.com/user/courses/kagents-host-your-ai-agents-on-kubernetes
- Kubernetes documentation: https://kubernetes.io/docs/
- AWS CLI / Credentials best practices: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html