✳simplemagic / data
Developers/Pulse
On this page

Install Pulse 0.2.5 on Kubernetes with an owner and a license

For a controller-managed installation, follow the Pulse Kubernetes operator guide. The steps below install the database chart directly.

Pulse 0.2.5 is available on Docker Hub for Linux amd64. The server and console images and the Helm chart can be pulled anonymously. Server image · Console image · Helm chart

Helm deploys three Pulse voters as a StatefulSet. Kubernetes pulls the server and console images by name. Free and licensed clusters use the same images. A licensed voter verifies its signed license locally.

You can verify the image tags from a terminal with Docker installed.

docker pull simplemagic/sm-pulse:0.2.5
docker pull simplemagic/sm-pulse-console:0.2.5

Choose the owner and edition

The main database owner is a Pulse user with role = "admin". You choose its name and password. The example uses owner. Pulse provisions this account from auth.toml and checks its password for authenticated HTTP and PostgreSQL connections. This account can administer tables, retention and backups through the database API. The web console has its own login and account store. The example gives its first administrator the same username and a separate password. The console uses the database credentials when it calls a voter.

A fresh free cluster can run three voters with two data shards and 50 GiB of stored data per voter. For more shards, a higher data limit, additional database users, service accounts, console team accounts, remote backup upload or membership changes, obtain a signed license.json covering those limits and features. The free edition supports a single owner and local backups. Existing accounts retain access after license expiry. Cluster ID binding is optional. For a new installation with a chart-generated seed, request an unbound initial license if the cluster ID is not yet known.

Prepare the namespace and Secrets

Choose the intended Kubernetes context. The examples use the pulse namespace and Helm release name pulse. Prepare the namespace and three schedulable workers with a suitable SSD StorageClass. The table uses example Secret names. The keys in the third column are exact.

Secret When needed Kubernetes Secret keys Helm value
pulse-access Database owner and authenticated console-to-voter connections in this setup auth.toml and node-auth auth.existingSecret and console.nodeAuthSecret
pulse-console-owner First web console admin when the console is enabled name and password console.admin.existingSecret
pulse-license Licensed features or limits license.json containing the signed file supplied by SimpleMagic license.existingSecret
pulse-seed Generated and retained by the chart at first install seed Chart-managed. Preserve it for this cluster.

Source the inputs from your secret manager. In the commands below, PULSE_INPUTS points to a protected directory of mounted files outside the repository. File contents go directly to Kubernetes. Keep usernames, passwords and tokens out of Helm values and shell history. The issuer's private signing key stays with SimpleMagic.

Prepare auth.toml with the following structure. Replace both placeholders in your secret manager. Use a random database password and a separate random peer token of 16–256 characters. Keep the same peer token across voters. [auth.admin] provisions the owner when the voters start.

[auth]
peer_token = "<shared-peer-token>"

[auth.admin]
name = "owner"
password = "<database-owner-password>"

Prepare node-auth as the single string owner:<database-owner-password>, using the exact password in auth.toml. Put owner in console-owner-name and a separate password of at least 10 characters in console-owner-password. Store these single-value files without trailing newlines. Provision the console owner before exposing the console Service.

kubectl config current-context
kubectl create namespace pulse   # fresh installation
kubectl -n pulse create secret generic pulse-access \
  --from-file=auth.toml="$PULSE_INPUTS/auth.toml" \
  --from-file=node-auth="$PULSE_INPUTS/node-auth"
kubectl -n pulse create secret generic pulse-console-owner \
  --from-file=name="$PULSE_INPUTS/console-owner-name" \
  --from-file=password="$PULSE_INPUTS/console-owner-password"

For a licensed installation, also create the license Secret. A free installation can skip this command.

kubectl -n pulse create secret generic pulse-license \
  --from-file=license.json="$PULSE_INPUTS/license.json"

Install and verify

Save this as pulse-values.yaml. It enables the console and authenticated database HTTP and PostgreSQL access. Raw ILP/TCP carries no credentials, so this example disables that listener. Use the target cluster's SSD StorageClass for persistence.storageClass, or use its default SSD class.

replicas: 3
shards: 2
auth:
  existingSecret: pulse-access
console:
  enabled: true
  nodeAuthSecret: pulse-access
  admin:
    existingSecret: pulse-console-owner
ilp:
  enabled: false

For a licensed install, add the following to that file and set shards to your licensed initial count. The shard count is fixed at provisioning. If enabling scheduled local backups with this owner, also set backup.authSecret: pulse-access. Remote upload additionally needs the backup_upload grant and the destination's credentials. Backup setup

license:
  existingSecret: pulse-license

Download the versioned chart from Docker Hub, then install it with the values file you prepared. Helm fetches the matching server and console images.

helm pull oci://registry-1.docker.io/simplemagic/pulse --version 0.2.5
helm install pulse ./pulse-0.2.5.tgz \
  --namespace pulse --values pulse-values.yaml --wait --timeout 15m
kubectl -n pulse rollout status statefulset/pulse
kubectl -n pulse rollout status deployment/pulse-console
kubectl -n pulse get pods -o wide

Forward the console Service and sign in at http://127.0.0.1:7070 with the console owner username and password. In Overview → License, verify the edition, limits, expiry and license ID for each voter.

kubectl -n pulse port-forward service/pulse-console 7070:7070

To check the database account independently, forward one voter in a separate terminal. curl --user owner prompts for the database owner password. Check that shards and limits match your deployment. Repeat with pulse-1 and pulse-2 to verify all voters. The monitoring endpoint exports pulse_license_state, pulse_license_load_error and pulse_license_refusals_total. Monitoring

kubectl -n pulse port-forward pod/pulse-0 19070:9070
# In another terminal
curl --fail --user owner http://127.0.0.1:19070/license

Verify a write and read through the client Service

Forward the internal Service in a separate terminal. In-cluster HTTP clients use pulse-client.pulse.svc:9070.

kubectl -n pulse port-forward svc/pulse-client 9070:9070

Run these commands against a fresh installation. Curl prompts for the password of the named user. First create a smoke-test table with an explicit shard key, then write one row and query it. Use a fresh table name throughout if you repeat this check against existing data.

curl -fsS http://127.0.0.1:9070/readyz
curl --fail-with-body -u owner -H 'Content-Type: application/json' \
  --data-binary '{"name":"pulse_install_check","columns":{"device":"tag","value":"integer"},"shard_keys":["device"]}' \
  http://127.0.0.1:9070/admin/tables
curl -sS --fail-with-body -o /dev/null -w '%{http_code}\n' -u owner \
  -H 'Content-Type: text/plain' --data-binary 'pulse_install_check,device=probe value=1i' \
  http://127.0.0.1:9070/write
curl --fail-with-body -u owner -H 'Content-Type: application/json' \
  --data-binary '{"sql":"SELECT COUNT(*) FROM pulse_install_check"}' \
  http://127.0.0.1:9070/query

Expect HTTP 200 for readiness and table creation, 204 for the write, and one row containing the count 1 in the query’s rows array. A request to the same query endpoint without credentials should return 401. Continue with configuration and monitoring.

Connect a dashboard, writer or MCP client

The recovery owner lives in the Kubernetes auth Secret. Create people and workload accounts in Pulse with SQL or the admin API. A users license grant permits creating these additional identities. For a dashboard or analysis client, assign the reader role. For ingestion, assign writer and give each application its own expiring bearer token. A reader can query every table in the database.

The Go writer discovers individual voters through GET /cluster/topology on the HTTP port. Make sure the advertised voter names resolve from the application and that their ports are reachable. In a default Kubernetes installation, place the writer on the cluster network to reach the pod DNS names. Give each writer its own persistent spool file for failed deliveries. Install the independent Go module with go get github.com/m6yf/[email protected]. SDK setup and runnable example

To expose the read-only MCP endpoint, keep the existing auth.existingSecret and add this setting to the same pulse-values.yaml used at installation.

mcp:
  enabled: true
helm upgrade pulse ./pulse-0.2.5.tgz -n pulse -f pulse-values.yaml --wait --timeout 15m
kubectl -n pulse rollout status statefulset/pulse

With the HTTP port-forward above running, verify discovery. Curl prompts for the database password. For ongoing analysis use the reader's username here.

curl --fail-with-body --user owner -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
  http://127.0.0.1:9070/mcp

Expect list_tables, describe_table, and query. HTTP 404 means the endpoint may be disabled on the responding voter. For 401 check the database password or service token. For a pending pod or an unbound volume, run kubectl -n pulse describe pod pulse-0 and kubectl -n pulse get pvc. For an HTTP 403 write refusal with license_limit in its body, check /license on each voter and compare the named limit to current usage.

Renew licenses and rotate credentials

  • Renew the license. Update the license.json key of the existing Secret. Kubernetes projects the change, then Pulse reloads the file within 60 seconds. Verify every voter in the console or via /license. Updating the existing license Secret takes effect without restarting voters.
  • Rotate owner credentials. Update both auth.toml and node-auth together in pulse-access. Roll the voters one at a time and verify quorum and owner login. Restart the console Deployment to refresh its node credential. To rotate the browser owner's password, update pulse-console-owner and restart the console. Preserve the console PVC that holds its accounts.

To replace only the signed file in an existing Secret, run the following command with jq and kubectl in the intended namespace. Then verify the expiry and ID on all three voters as described above.

kubectl -n pulse create secret generic pulse-license \
  --from-file=license.json="$PULSE_INPUTS/license.json" --dry-run=client -o json | \
  jq '{data: {"license.json": .data["license.json"]}}' | \
  kubectl -n pulse patch secret pulse-license --type=merge --patch-file=/dev/stdin

Search documentation

Type to search across both databases.

↑ ↓ to navigate · Enter to openEsc to close