Which shape to deploy
Read this page before your first install, or when an installation grows. There are three shapes, and the choice is not made on the number of users: it is made on what you accept to lose when a machine goes, and on how many tenants the gateway serves.
| Your situation | Shape | Edition | File |
|---|---|---|---|
| One tenant, and you can accept a short outage while a machine is replaced | One gateway | Community | docker-compose.yml, values-ce-one-node.yaml |
| Several tenants, a corporate directory, or the developer tunnel | One gateway | Enterprise | docker-compose.ee.yml, values-ee-one-node.yaml |
| The gateway must survive the loss of a machine | Three gateways | Enterprise | values-ee-cluster.yaml, stack.swarm.yml |
Whatever the shape, the first account is called admin, and its password is the one you pass at install time. It is read on the first start only.
One gateway, community
One container, one volume, nothing beside it. The embedded store holds the routes, the accounts, the roles, the sealed vault and the certificates. That is the whole gateway for one tenant, free, production included.
What it does not do is survive the loss of its machine: a volume does not follow a container from one host to another. Back up the volume and you have backed up the gateway.
# Docker
curl -fsSLO https://meerkat.softwarity.dev/deploy/docker-compose.yml
MEERKAT_ADMIN_PASSWORD='choose-one' docker compose up -d
# Kubernetes
helm repo add meerkat https://meerkat.softwarity.dev/deploy
helm install meerkat meerkat/meerkat -f https://meerkat.softwarity.dev/deploy/values-ce-one-node.yaml \
--set admin.password='choose-one'
Check it worked. With Docker, open http://localhost:9090. With Helm, the console is not published: open a tunnel to it, then open the same address.
kubectl port-forward svc/meerkat-meerkat-admin 9090:9090
Sign in as admin with the password you chose. The Service is named after the release: <release>-meerkat-admin, so meerkat-meerkat-admin for a release called meerkat. helm install prints the exact command.
One gateway, Enterprise
Same shape, Enterprise image: several tenants, the corporate directories, and the developer tunnel. That one listens on 22222, and it is one more port to publish where your developers reach it and nowhere else. It does not speak HTTP: it is SSH, and what the gateway checks there is the public key each developer deposited on their account. See Development mode.
The image is public; what makes it Team or Enterprise is the license, from a Secret:
kubectl create secret generic meerkat-license --from-file=license=<the file Softwarity sent>
helm install meerkat meerkat/meerkat -f https://meerkat.softwarity.dev/deploy/values-ee-one-node.yaml \
--set admin.password='choose-one' --set license.existingSecret=meerkat-license
To try it first, the same shape without a license, as an evaluation: -f https://meerkat.softwarity.dev/deploy/values-eval-one-node.yaml.
Check it worked: the same tunnel and the same sign-in as above. Meerkat, License then shows the edition and who the license was issued to.
Three gateways, Enterprise
What makes three pods ONE gateway is the database they share, and nothing else: the nodes never address each other. Sessions live there too, so there is no affinity to ask of the load balancer, and a rolling update takes nobody's session with it.
There is no volume any more: what the gateway knows is rows. But the vault's master key has to be the same on every pod, or a secret sealed by one is unreadable by the others.
Before you start, a PostgreSQL must already be running, reachable from every node, with an empty database and a user that owns it. The commands below call it postgres.
The chart's cluster values read the database URL and the vault key from a Secret named meerkat-state (keys database-url and vault-key): create it under that name. The manifests written by hand on Kubernetes cluster are a separate route, with a Secret of their own.
kubectl create secret generic meerkat-state \
--from-literal=database-url='postgres://meerkat:PASSWORD@postgres:5432/meerkat?sslmode=require' \
--from-literal=vault-key="$(openssl rand -hex 32)"
kubectl create secret generic meerkat-license --from-file=license=<the file Softwarity sent>
helm install meerkat meerkat/meerkat -f https://meerkat.softwarity.dev/deploy/values-ee-cluster.yaml \
--set admin.password='choose-one' --set license.existingSecret=meerkat-license
The same cluster without a license, to try it before buying it: -f https://meerkat.softwarity.dev/deploy/values-eval-cluster.yaml, with the same meerkat-state Secret.
Check it worked. kubectl get pods -l app.kubernetes.io/instance=meerkat lists three pods, each 1/1 Running. Open the console through the same tunnel as above, sign in as admin, and open Infra, Topology: it shows three instances on one PostgreSQL. That screen is how you see that the three pods are one gateway.

On Docker Swarm
The same shape deploys with a stack. The three values are interpolated by Swarm at deploy time, from the shell that deploys: they are never in the file. The PostgreSQL has to be reachable from the gateway's tasks under the host name of the URL, postgres here.
curl -fsSLO https://meerkat.softwarity.dev/deploy/stack.swarm.yml
export MEERKAT_DATABASE_URL='postgres://meerkat:PASSWORD@postgres:5432/meerkat?sslmode=require'
export MEERKAT_VAULT_KEY="$(openssl rand -hex 32)" # once, then keep it
export MEERKAT_ADMIN_PASSWORD='choose-one'
docker stack deploy -c stack.swarm.yml meerkat
Check it worked. docker service ls shows meerkat_meerkat at 3/3. Open http://<any node>:9090, sign in as admin, and open Infra, Topology.
The stack also runs a read-only proxy of the Docker socket on every node (docker-proxy, mode: global), on a network only the gateway joins. It lets reads through and refuses every write. Through it the route editor offers the Swarm services, and the Routes list shows each target's ready replicas and image, from the events of every node: a container's events come only from the node it runs on.
mode: ingress) and rolling updates in order: start-first. Any node answers, but the mesh rewrites the connection's source, so the gateway sees an address of the mesh instead of the caller's, and its per-address limits, access log and sign-in counters read the wrong one. The two changes that keep the client's address are shown below.Publish the ports in mode: host, and free the port before the new task takes it, since a task started first would find the port still held:
services:
meerkat:
ports:
- target: 8080
published: 8080
mode: host # was: ingress
- target: 9090
published: 9090
mode: host # was: ingress
deploy:
update_config:
order: stop-first # was: start-first
The price: a node answers only while a gateway task runs on it, so whatever is in front (DNS, a load balancer) lists those nodes, and each task is down for a moment during an update.
The files
These are the repository's own, copied here on every publication of the site: what you download is what the released version deploys.
| File | For |
|---|---|
| index.yaml | The Helm repository: helm repo add meerkat https://meerkat.softwarity.dev/deploy. It lists every released version: helm install takes the newest, and --version 1.9.0 (or a version pinned in Argo CD, Flux or Terraform) stays installable after the next release |
| meerkat-chart.tgz | The Helm chart, installed as it is |
| values-ce-one-node.yaml | One community gateway on its volume |
| values-ee-one-node.yaml | One Enterprise gateway, developer tunnel open |
| values-ee-cluster.yaml | Three Enterprise gateways on a shared PostgreSQL, reading the meerkat-state Secret |
| values-eval-one-node.yaml | One gateway without a license (evaluation), developer tunnel open |
| values-eval-cluster.yaml | Three gateways without a license (evaluation), on a shared PostgreSQL |
| docker-compose.yml | One community gateway, one command |
| docker-compose.ee.yml | One Enterprise gateway with the tunnel |
| stack.swarm.yml | Three gateways on Docker Swarm |
The repository distributes the chart, not the images: the cluster pulls those itself, from the registry the values name. There is one chart for both editions, and the edition is the image:
- Team and Enterprise:
docker.io/softwarity/meerkat, public - the chart's default, with the license in a Secret named bylicense.existingSecret. Thevalues-ee-*files say so; that is the whole difference at install time. - Evaluation: the same image without a license - everything Enterprise does, with an evaluation notice, not for production. The
values-eval-*files are this. - Community:
docker.io/softwarity/meerkat-ce, public, set inimage.repository. Thevalues-ce-*file sets it.
Every file is commented line by line: what a variable does, and what it costs to forget it. The detail of each variable is on One gateway, and the Kubernetes manifests written out in full are on Kubernetes cluster.