Skip to main content

Lattice Setup & Configuration

This guide covers all configuration options for Station Lattice, including config file setup, environment variables, TLS encryption, and NKey authentication.

Configuration Methods

Station Lattice can be configured through:
  1. CLI flags (highest priority)
  2. Environment variables
  3. Config file (config.yaml)

Config File

Add a lattice section to your config.yaml:
config.yaml

Environment Variables

All lattice settings can be configured via environment variables:

CLI Flags

Orchestrator Configuration

Basic Setup

orchestrator-config.yaml

JetStream Storage

The orchestrator uses JetStream for persistent storage:

Cluster Mode (High Availability)

For production deployments, run multiple orchestrators in cluster mode:
orchestrator-1.yaml

Member Configuration

Basic Setup

member-config.yaml

Multiple NATS URLs (Failover)

Reconnection Settings

Security Configuration

TLS Encryption

Generate certificates for secure communication:
Configure TLS on orchestrator:
orchestrator-config.yaml
Configure TLS on member:
member-config.yaml

NKey Authentication

NKeys provide secure, passwordless authentication using Ed25519 keys. Generate NKey pairs:
Configure NKey on orchestrator:
orchestrator-config.yaml
Configure NKey on member:
member-config.yaml

Agent Configuration

Declaring Capabilities

Agents can declare capabilities for routing:
agent.yaml

Restricting Remote Access

Control which agents can be invoked remotely:
config.yaml

Monitoring

Health Endpoints

The lattice exposes health information:

Metrics

Lattice exposes Prometheus metrics:

Troubleshooting

Connection Issues

Common Errors