Skip to content
Dashboard

Build your network

View as Markdown

Your network runs on a Kubernetes cluster you control. Akua runs the control plane, you add the servers, and you and your coding agent work on it as cluster admin. Players join through Minekube Connect, so no server needs an open port.

In the Clusters dashboard, click New cluster, keep Hosted by Akua, and choose a name and a Region. With the Akua CLI:

Terminal window
akua auth login
akua regions list
akua clusters create --kind hosted \
--name my-network \
--region-id REGION_ID

Then add a server. Either let Akua start the free trial server (2 vCPU, 4 GiB, one per person, runs for 7 days), with a card that Akua verifies and does not charge:

Terminal window
akua node-pools create CLUSTER_ID \
--node-pool-id server-1 \
--machine-type cx23 \
--node-count 1

Or join a Linux server you already have. Create a join command and run it on the server as root:

Terminal window
akua clusters create-join-token \
CLUSTER_ID --ttl-seconds 3600

The Cluster is ready once its first server has joined. Where your game runs compares these options with attaching a Kubernetes cluster you already operate.

Terminal window
akua clusters get-credentials \
CLUSTER_ID --workspace WORKSPACE
kubectl get nodes

The first command adds the Cluster to your kubeconfig and switches kubectl to it. kubectl, Helm and every tool that reads your kubeconfig now work with cluster-admin rights. No credential is written to the file: kubectl asks the Akua CLI for a short-lived token whenever it needs one. See Connect with kubectl.

Your coding agent works the same way. Set it up with the Akua quickstart prompt, or give a script an API token for your Workspace in AKUA_API_TOKEN; it gets the same kubectl access.

Package each part of your network, such as a lobby, a game server or a proxy, as described in Package your game. Then install it on the Cluster from the dashboard with Install an app, or with one command:

Terminal window
akua commands \
--operation-id installs.create \
--json
akua installs create \
--input install.json

The first command prints the request shape: the Package, its version, the Cluster and the settings for this server. Each Install keeps its own settings and, with a volume in the Package, its own world, and you update it when you choose.

Because you are cluster admin, you can also run anything else next to your Installs with kubectl or Helm, such as Gate on Kubernetes.

For a network of several servers, put a proxy in front of them and connect only the proxy:

For a single server, install the Connect plugin on the server itself. Forwarding and topologies shows each setup.

When the proxy or server starts, its console prints the public address. Read it with kubectl:

Terminal window
kubectl logs -n NAMESPACE \
deploy/DEPLOYMENT \
| grep play.minekube.net

Join <endpoint>.play.minekube.net in Minecraft. Players use the same address, with no open port and no IP address to share. Get players covers custom domains and the in‑game Browser Hub.

Was this helpful?