Implementation:A2aproject A2a java K8s Deployment Scripts
Appearance
| Knowledge Sources | |
|---|---|
| Domains | DevOps, Cloud_Native |
| Last Updated | 2026-10-29 00:00 GMT |
Overview
External tool documentation for the shell scripts that automate Kubernetes cluster setup, infrastructure provisioning, agent deployment, and multi-pod verification for the A2A cloud deployment example.
Description
The cloud deployment example includes three shell scripts that automate the full deployment lifecycle:
- `deploy.sh` — Creates a Kind Kubernetes cluster with local registry, installs the Strimzi Kafka operator, builds and pushes the agent container image, applies all Kubernetes manifests (namespace, PostgreSQL, Kafka, agent deployment), and waits for pod readiness.
- `verify.sh` — Checks namespace, PostgreSQL, Kafka, and agent pod readiness, then runs the `A2ACloudExampleClient` test client to verify multi-pod operation through message exchange and artifact pod-name verification.
- `cleanup.sh` — Tears down the agent deployment, Kafka cluster, PostgreSQL, and the Kind cluster itself.
These scripts use `kind` (Kubernetes in Docker) for local development and testing. The `--container-tool` flag selects between `docker` and `podman`.
External Reference
Usage
- Full deployment: `./deploy.sh` — creates cluster, provisions infra, deploys agent
- Verification: `./verify.sh` — checks health and multi-pod behavior
- Cleanup: `./cleanup.sh` — removes all resources
Usage Examples
Full Cloud Deployment
cd examples/cloud-deployment/scripts
# Create cluster, install Strimzi, build image, deploy agent (3 replicas)
./deploy.sh
# Verify multi-pod operation
./verify.sh
# Clean up when done
./cleanup.sh
Deploy with Podman
./deploy.sh --container-tool podman
What deploy.sh Does
# 1. Create Kind cluster with port mappings (9999, 9000, 8080)
kind create cluster --config=../kind-config.yaml
# 2. Set up local container registry on port 5001
# 3. Install Strimzi Kafka operator
kubectl apply -f https://strimzi.io/install/latest
# 4. Apply Kubernetes manifests
kubectl apply -f k8s/00-namespace.yaml
kubectl apply -f k8s/01-postgres.yaml
kubectl apply -f k8s/02-kafka.yaml
kubectl apply -f k8s/03-kafka-topic.yaml
kubectl apply -f k8s/04-agent-configmap.yaml
kubectl apply -f k8s/05-agent-deployment.yaml
# 5. Build and push agent container image
# 6. Wait for pods to be ready
What verify.sh Checks
# Check namespace exists
kubectl get namespace a2a-demo
# Check PostgreSQL is running
kubectl get statefulset -n a2a-demo postgres
# Check Kafka cluster is ready
kubectl get kafka -n a2a-demo
# Check agent pods are ready (3 replicas)
kubectl get pods -n a2a-demo -l app=a2a-agent
# Run verification client
mvn test -pl examples/cloud-deployment/server
Related Pages
Implements Principle
Requires Environment
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment