Files
sor/deploy/k8s/configmap-nats.yaml
T
775cf65899 Fix NATS max_payload — use config file instead of invalid CLI flag
-max_payload is not a valid NATS CLI flag; it must be set in a config file.

- Add deploy/k8s/configmap-nats.yaml with nats.conf (jetstream, http_port,
  max_payload=8 MB).
- Update deployment-nats.yaml to mount the ConfigMap at /etc/nats and
  start NATS with -c /etc/nats/nats.conf instead of individual CLI flags.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-28 20:09:59 -05:00

18 lines
458 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: nats-config
namespace: stone-server
data:
nats.conf: |
# JetStream (replaces -js CLI flag)
jetstream: true
# HTTP monitoring port (replaces -m 8222 CLI flag)
http_port: 8222
# Maximum message payload size.
# Default is 1 MB which is too small for content.sync responses
# that include full card DTOs with AbilitiesJson / EffectsJson fields.
max_payload: 8388608 # 8 MB