Deploy a standalone control plane

In order to deploy Kuma in a standalone deployment, the kuma-cp control plane must be started in standalone mode:

This is the standard installation method as described in the installation page.

  1. kumactl install control-plane | kubectl apply -f -

With zone egress:

It’s possible to run ZoneEgress for standalone deployment. In order to deploy Kuma with ZoneEgress run the install command with an additional parameter.

  1. kumactl install control-plane --egress-enabled | kubectl apply -f -

This is the standard installation method as described in the installation page.

  1. kuma-cp run

With zone egress:

ZoneEgress works for Universal deployment as well. In order to deploy ZoneEgress for Universal deployment follow the instruction .

Once Kuma is up and running, data plane proxies can now connect directly to it.

When the mode is not specified, Kuma will always start in standalone mode by default.

Optional: Docker authentication

Running administrative tasks (like generating a dataplane token) requires authentication by token or a connection via localhost.

Localhost authentication

For kuma-cp to recognize requests issued to docker published port it needs to run the container in the host network. To do this, add --network="host" parameter to the docker run command.

Authenticate via token

You can also configure kumactl to access kuma-dp from the container. Get the kuma-cp container id:

  1. docker ps # copy kuma-cp container id
  2. export KUMA_CP_CONTAINER_ID='...'

Configure kumactl:

  1. TOKEN=$(bash -c "docker exec -it $KUMA_CP_CONTAINER_ID wget -q -O - http://localhost:5681/global-secrets/admin-user-token" | jq -r .data | base64 -d)
  2. kumactl config control-planes add \
  3. --name my-control-plane \
  4. --address http://localhost:5681 \
  5. --auth-type=tokens \
  6. --auth-conf token=$TOKEN \
  7. --skip-verify