Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:A2aproject A2a java Kind Cluster

From Leeroopedia
Knowledge Sources
Domains Infrastructure, Kubernetes, Cloud
Last Updated 2026-10-29 00:00 GMT

Overview

Kind (Kubernetes in Docker) local cluster environment for running the A2A cloud-deployment example with PostgreSQL, Kafka, and multiple agent replicas.

Description

The A2A Java SDK's cloud-deployment example uses Kind to provision a local Kubernetes cluster for testing horizontal scaling. The `kind-config.yaml` configures a single control-plane node with extra port mappings (host 8080 → NodePort 30080) and containerd registry mirror patches for a local Docker registry. The `deploy.sh` script checks for Kind and kubectl installation, creates the cluster if needed, and deploys Strimzi (Kafka operator), PostgreSQL, and the A2A agent with 2 replicas. Podman can be used as an alternative container runtime via `KIND_EXPERIMENTAL_PROVIDER=podman`.

Usage

Use this environment for the K8s deployment scripts (`deploy.sh`, `verify.sh`, `cleanup.sh`) and K8s manifest patterns. It is the required environment for the cloud-deployment example that demonstrates horizontal scaling with externalized state (PostgreSQL TaskStore + Kafka replicated QueueManager).

System Requirements

Category Requirement Notes
OS Linux or macOS Windows via WSL2
Hardware 4GB RAM minimum 8GB recommended for Kafka + PostgreSQL + 2 agent pods
Disk 10GB free space For container images and cluster volumes
Container Runtime Docker or Podman Podman requires `KIND_EXPERIMENTAL_PROVIDER=podman`

Dependencies

System Packages

  • `kind` — Kubernetes in Docker CLI
  • `kubectl` — Kubernetes CLI
  • `docker` or `podman` — Container runtime

Kubernetes Components

  • Kind cluster (v1.x control-plane node)
  • Strimzi Kafka operator (v1.0.0, bundled in repo)
  • Local Docker registry container (port 5001)

Credentials

No credentials required for the local Kind cluster. The cluster runs locally without authentication.

Quick Install

# Install Kind
# Linux:
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind

# Install kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

# Deploy the A2A cloud example
cd examples/cloud-deployment/scripts
./deploy.sh

Code Evidence

Kind installation check from `examples/cloud-deployment/scripts/deploy.sh:42-46`:

if ! command -v kind &> /dev/null; then
    echo -e "${RED}Error: Kind is not installed${NC}"
    echo "Please install Kind first: https://kind.sigs.k8s.io/docs/user/quick-start/#installation"
    exit 1
fi

kubectl check from `deploy.sh:49-53`:

if ! command -v kubectl &> /dev/null; then
    echo -e "${RED}Error: kubectl is not installed${NC}"
    echo "Please install kubectl first: https://kubernetes.io/docs/tasks/tools/"
    exit 1
fi

Cluster creation from `deploy.sh:73-75`:

kind create cluster --config=../kind-config.yaml

Kind config with local registry and port mapping from `examples/cloud-deployment/kind-config.yaml:7-24`:

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
containerdConfigPatches:
- |-
  [plugins."io.containerd.grpc.v1.dei".registry]
    config_path = "/etc/containerd/certs.d"
nodes:
- role: control-plane
  extraPortMappings:
  - containerPort: 30080
    hostPort: 8080

Common Errors

Error Message Cause Solution
`Error: Kind is not installed` Kind CLI missing Install from https://kind.sigs.k8s.io
`Error: kubectl is not installed` kubectl missing Install from https://kubernetes.io/docs/tasks/tools/
`Existing Kind cluster is not healthy` Stale cluster state Run `./cleanup.sh` then re-deploy
`port 8080 already in use` Another process on host port 8080 Stop the process or change `hostPort` in kind-config.yaml

Compatibility Notes

  • Podman: Supported via `--container-tool podman` flag; requires `KIND_EXPERIMENTAL_PROVIDER=podman`.
  • minikube / k3d: Not directly supported by the deploy scripts; would require manual cluster setup.
  • Remote clusters: Not supported by these scripts; they assume local Kind.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment