Files
sor/deploy/k8s/deployment-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

58 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nats
namespace: stone-server
labels:
app: nats
spec:
replicas: 1
selector:
matchLabels:
app: nats
template:
metadata:
labels:
app: nats
spec:
volumes:
- name: nats-config
configMap:
name: nats-config
containers:
- name: nats
image: nats:2.10-alpine
args:
- "-c"
- "/etc/nats/nats.conf"
volumeMounts:
- name: nats-config
mountPath: /etc/nats
readOnly: true
ports:
- name: client
containerPort: 4222
- name: monitor
containerPort: 8222
livenessProbe:
tcpSocket:
port: 4222
initialDelaySeconds: 10
periodSeconds: 20
timeoutSeconds: 3
failureThreshold: 3
readinessProbe:
tcpSocket:
port: 4222
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
resources:
requests:
cpu: "50m"
memory: "64Mi"
limits:
cpu: "250m"
memory: "256Mi"