Swarm deployment repository for the K-P2PLab control plane.
The file is written in Compose format, but it must be deployed with
docker stack deploy because the Controller and Agents run across multiple
Docker Engines.
controller: one replica on the Swarm manageragent: one global task on every Swarm worker- no agent is placed on the manager
kpl-control: Controller-Agent traffickpl-experiment: future peer-container traffic
- One Swarm manager and one or more Swarm workers are already connected.
- Both images are pushed to a registry reachable by every Swarm node.
- Run deployment commands on the manager.
cp .env.example .env
vi .env
chmod +x scripts/*.sh
./scripts/deploy.sh./scripts/status.sh
curl http://127.0.0.1:8080/healthz
curl http://127.0.0.1:8080/api/v1/agentsThe agent service uses mode: global with the constraint
node.role == worker, so a newly joined worker automatically receives one
agent task.
./scripts/remove.shThe two external overlay networks are deliberately preserved because future
standalone peer containers will attach to kpl-experiment.