# Configure a Pulse cluster

Start with the [installation values](/smts/docs/kubernetes/install/). Keep the complete values file for each environment under your deployment system’s control. Store only Secret names in that file. Inspect the defaults for the version you are installing with `helm show values ./pulse-0.2.5.tgz`.

## Decide before bootstrap

| Setting | How to choose |
| --- | --- |
| Release name or `fullnameOverride` | Keep it for the life of the data. Pod DNS names are stored in the cluster identity. |
| `shards` | Two is the free limit and chart default. Choose a higher licensed count before provisioning. The count is fixed after provisioning. |
| `ports.http` | Defaults to 9070 and determines peer ports. Keep it fixed after bootstrap. |
| `replicas` | Start with three voters on three workers. Each shard retains three copies as the cluster grows. Scale-out requires spare workers and movable shards. |
| `persistence.sizeGi`, `persistence.storageClass` | Each voter gets its own RWO volume. At three voters every node stores every shard. Estimate retained bytes per node, then reserve space for Raft logs, checkpoints, compaction, and backup staging. Three 250 GiB volumes do not provide 750 GiB of unique data. |
| `resources` | Set requests from representative ingest and query load. Leave room for the page cache and concurrent reads when setting a memory limit. Observe pod memory and disk latency under load before tightening it. |

Keep the generated `pulse-seed` Secret and `pulse-state` ConfigMap with the cluster. They preserve identity and tell a previously provisioned voter when its volume is unexpectedly empty.

## Connect application namespaces

The installation profile uses a ClusterIP Service. Enable NetworkPolicy to restrict eligible clients. To allow an application namespace, merge this block into your values and substitute its actual namespace. A populated `clientsFrom` replaces the chart’s same-namespace default client rule. List every client namespace that needs access. Use a cluster network that enforces NetworkPolicy.

```yaml
networkPolicy:
  enabled: true
  clientsFrom:
    - namespaceSelector:
        matchLabels:
          kubernetes.io/metadata.name: applications
```

| Interface | Values / port | Access |
| --- | --- | --- |
| HTTP SQL and writes | `ports.http: 9070` | Use the reader, writer, or admin identity appropriate to the operation. |
| PostgreSQL wire | `pg.enabled`, port 8812 | Enable for SQL clients. Connect to the private client Service. |
| ILP over TCP | `ilp.enabled`, port 9009 | This listener accepts writes from reachable clients without a user login. Restrict it to trusted senders. Authenticated HTTP is available for writers that need identity. |

The chart provides plaintext listeners. Keep peers private and provide TLS at a trusted proxy or through your platform’s network controls where traffic crosses trust boundaries. A NetworkPolicy matches addresses and ports, so a metrics collector allowed to reach HTTP can also connect to that port’s other routes. Protected routes still require credentials.

## Query limits and configuration changes

```yaml
query:
  maxScannedRows: 1000000000
  timeoutMs: 30000
```

These are the chart defaults. If a dashboard hits the scan limit, check its time predicate and the size of the range it actually needs. Raising the limit admits more work per request. Supply additional supported server TOML settings through `extraConfig` and apply reviewed changes with the [upgrade procedure](/smts/docs/kubernetes/operations/).

## Console and identities

The console is optional. The installation walkthrough stores both `auth.toml` and the console’s `node-auth` credential in the existing `pulse-access` Secret. The `node-auth` value has the form `name:password`. Choose a node user with the least role the console needs. Create `pulse-console-owner` with keys `name` and `password` for the console’s own administrator. Use a password of at least ten characters. These logins serve different purposes.

```yaml
console:
  enabled: true
  admin:
    existingSecret: pulse-console-owner
  nodeAuthSecret: pulse-access
  service:
    type: ClusterIP
```

After applying the change, run `kubectl -n pulse port-forward svc/pulse-console 7070:7070`, open `http://127.0.0.1:7070`, and sign in with the console administrator account. For a headless deployment, the [monitoring guide](/smts/docs/kubernetes/monitoring/) covers the same cluster health checks from the command line.
