Skip to main content
In this tutorial, you install Routr Connect on a local Kubernetes cluster with Helm, open a tunnel to the Data API, and create your first resource with rctl.

What you’ll build

A Routr Connect release named sipnet in a sipnet namespace, with each Routr service in its own pod, plus the PostgreSQL and Redis instances the chart installs for you. You manage it from your machine with rctl.

Prerequisites

  • A local Kubernetes cluster, such as Minikube or the one built into Docker Desktop, with a storage provisioner for persistent volumes.
  • kubectl configured for that cluster.
  • Helm v3.
  • Node.js 22 or later and npm, to install rctl.
  • The IP address your SIP clients will use to reach the cluster (for a local cluster, usually your machine’s IP, for example 192.168.1.3).
The PostgreSQL and Redis images the chart installs (bitnamilegacy/*) are built for amd64 only. On an arm64 cluster, such as Docker Desktop or kind on Apple silicon, run them under amd64 emulation, or disable the subcharts and point Routr at your own databases. See Helm values.

Steps

1

Add the Helm repository

Add the Routr chart repository and refresh your local cache:
2

Create a namespace

Create a namespace for the release. A dedicated namespace makes upgrades and cleanup easier.
3

Write a values file

Create a file named values.yaml. It sets the address the EdgePort advertises in SIP messages.
The chart writes each component’s configuration file from your values. It also generates, once, an API key for the Data API and a certificate for its TLS, and keeps both in Secrets of the release.
4

Install the chart

Install Routr Connect with your values file:
Helm prints a summary similar to this:
Wait a few minutes for the images to download and the pods to start. Check their status:
You see the Routr services (apiserver, which runs the Data API, connect, edgeport, location, registry, requester) plus postgresql and redis. The chart runs two replicas each of apiserver, connect and location, and one EdgePort per node, which replicas: 1 matches on a local cluster. The EdgePorts send every message straight to Connect; the Dispatcher runs only with dispatcher.enabled: true, which message recording and middlewares such as RTPRelay need.
All pods show the status Running.
5

Open a tunnel to the Data API

The Data API isn’t exposed outside the cluster. Forward the Service’s port 51907, where rctl looks by default, to your machine. Keep this command running in its own terminal.
The service name follows the pattern <release>-routr-apiserver.
6

Get the API key and the CA

The Data API takes an API key and serves TLS. Read the key into ROUTR_API_KEY, where rctl looks for it, and save the CA that signed the Data API’s certificate:
The certificate names the Service and localhost, so it matches the tunnel. helm install prints the same commands in its notes.
7

Connect with rctl

In a new terminal, install the command-line tool:
rctl connects to localhost:51907 by default, which is where the tunnel listens. Create a Domain:
Answer the prompts:
List your Domains to confirm the Data API stored it in PostgreSQL:
rctl reaches Routr running in Kubernetes, and your Domain appears in the list.
From here, the steps to add Credentials and Agents are the same as in the Docker quickstart, with --cacert ca.crt in place of --insecure --endpoint localhost:51907. To register softphones, your clients must reach the EdgePort service. By default, the chart exposes it as a NodePort service over UDP. See Deploy on Kubernetes for service types, transports, and external addresses.

Clean up

Remove the release and the namespace when you’re done:

Next steps

Deploy on Kubernetes

Configure transports, services, and external addresses for a real cluster.

Helm values

See every value the chart accepts.

Deployment topologies

Learn how each component scales.

Manage resources with rctl

Create Agents, Peers, Trunks, and Numbers.